Skip to content

Commit

Permalink
Fix: p에 따른 -> mdd에 따른 [16-SulGore#27]
Browse files Browse the repository at this point in the history
  • Loading branch information
Cha-Ji committed Oct 17, 2022
1 parent 6d960da commit bf9a6dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void onClick(View view) {
TextView textView7 = (TextView) findViewById(R.id.textView7);
textView7.setOnClickListener(view -> {
Intent menuIntent = new Intent(getApplicationContext(), RatioActivity.class);
menuIntent.putExtra(RatioActivity.RATIO_TYPE, RatioActivity.RATIO_P);
menuIntent.putExtra(RatioActivity.RATIO_TYPE, RatioActivity.RATIO_MDD);
startActivity(menuIntent);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import android.view.View
import androidx.lifecycle.ViewModelProvider
import com.sulgorae.crypto.R
import com.sulgorae.crypto.common.BaseFragment
import com.sulgorae.crypto.databinding.FragmentPRatioBinding
import com.sulgorae.crypto.databinding.FragmentMddRatioBinding
import com.sulgorae.crypto.di.Injection
import com.sulgorae.crypto.di.ViewModelFactory
import com.sulgorae.crypto.utils.toLineData

class PRatioFragment : BaseFragment<FragmentPRatioBinding>(R.layout.fragment_p_ratio) {
class MddRatioFragment : BaseFragment<FragmentMddRatioBinding>(R.layout.fragment_mdd_ratio) {

private val ratioViewModel: RatioViewModel by lazy {
ViewModelProvider(this, ViewModelFactory(Injection.exchangeDataSource, Injection.quotationDataSource))[RatioViewModel::class.java]
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/sulgorae/crypto/ratio/RatioActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RatioActivity : BaseActivity<ActivityRatioBinding>(R.layout.activity_ratio
private fun setFragment() {
when (intent.getStringExtra(RATIO_TYPE)) {
RATIO_K -> { navigateRatioFragment(KRationFragment()) }
RATIO_P -> { navigateRatioFragment(PRatioFragment()) }
RATIO_MDD -> { navigateRatioFragment(MddRatioFragment()) }
}
}

Expand All @@ -36,6 +36,6 @@ class RatioActivity : BaseActivity<ActivityRatioBinding>(R.layout.activity_ratio
companion object {
const val RATIO_TYPE = "ratio_type"
const val RATIO_K = "K"
const val RATIO_P = "P"
const val RATIO_MDD = "MDD"
}
}

0 comments on commit bf9a6dc

Please sign in to comment.