Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix part of #138: Topic train fragment Low-fi UI (Part 3) #203

Merged
merged 19 commits into from
Oct 8, 2019
Prev Previous commit
Next Next commit
Nit changes
  • Loading branch information
Rajat Talesra committed Oct 7, 2019
commit 06f03b9679d2afc30ae846df452c7c27d8897f00
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Context
import android.content.Intent
import android.os.Bundle
import org.oppia.app.activity.InjectableAppCompatActivity
import org.oppia.app.topic.TopicActivity
import javax.inject.Inject

const val QUESTION_PLAYER_ACTIVITY_SKILL_ID_LIST_ARGUMENT_KEY = "QuestionPlayerActivity.skill_id_list"
Expand All @@ -22,7 +21,7 @@ class QuestionPlayerActivity : InjectableAppCompatActivity() {

companion object {
// TODO(#159): Use this skillList from TopicTrainFragment to fetch questions and start train mode.
/** Returns a new [Intent] to route to [TopicActivity] for a specified skill ID list. */
/** Returns a new [Intent] to route to [QuestionPlayerActivity] for a specified skill ID list. */
fun createQuestionPlayerActivityIntent(context: Context, skillIdList: ArrayList<String>): Intent {
val intent = Intent(context, QuestionPlayerActivity::class.java)
intent.putExtra(QUESTION_PLAYER_ACTIVITY_SKILL_ID_LIST_ARGUMENT_KEY, skillIdList)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.oppia.app.topic.train

import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.oppia.app.topic.train

import android.util.Log
import android.view.View
import androidx.databinding.ObservableField
import androidx.lifecycle.ViewModel
Expand All @@ -16,7 +15,6 @@ class TopicTrainViewModel @Inject constructor(
var isSubmitButtonActive = ObservableField<Boolean>(false)

fun selectedSkillList(selectedSkillList: ArrayList<String>) {
rt4914 marked this conversation as resolved.
Show resolved Hide resolved
Log.d("TAG", "Size: "+selectedSkillList.size)
isSubmitButtonActive.set(selectedSkillList.isNotEmpty())
}

Expand Down