Skip to content

Commit

Permalink
Remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
SeniorZhai committed Dec 4, 2024
1 parent 17f92c5 commit be49f08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 53 deletions.
13 changes: 0 additions & 13 deletions app/src/main/java/one/mixin/android/ui/landing/LandingFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@ class LandingFragment : Fragment(R.layout.fragment_landing) {
MobileFragment.TAG,
)
}
binding.userTv1.setOnClickListener { v ->
navTo(MnemonicPhraseFragment.newInstance(words = ArrayList<String>().apply {
addAll(testAccount[0].split(" "))
}), MnemonicPhraseFragment.TAG)
}
binding.userTv2.setOnClickListener { v ->
navTo(MnemonicPhraseFragment.newInstance(words = ArrayList<String>().apply {
addAll(testAccount[1].split(" "))
}), MnemonicPhraseFragment.TAG)
}
}

private val testAccount = listOf(
"" , "" // Todo add test account
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ class AccountFragment : BaseFragment(R.layout.fragment_account) {
navTo(SecurityFragment.newInstance(), SecurityFragment.TAG)
}
logOutRl.setOnClickListener {
// if (!Session.hasPhone() && !Session.saltExported()) {
// BackupMnemonicPhraseWarningBottomSheetDialogFragment.newInstance()
// .show(parentFragmentManager, BackupMnemonicPhraseWarningBottomSheetDialogFragment.TAG)
// } else {
// LogoutPinBottomSheetDialogFragment.newInstance()
// .showNow(parentFragmentManager, VerifyBottomSheetDialogFragment.TAG)
// }
MixinApplication.get().closeAndClear()
if (!Session.hasPhone() && !Session.saltExported()) {
BackupMnemonicPhraseWarningBottomSheetDialogFragment.newInstance()
.show(parentFragmentManager, BackupMnemonicPhraseWarningBottomSheetDialogFragment.TAG)
} else {
LogoutPinBottomSheetDialogFragment.newInstance()
.showNow(parentFragmentManager, VerifyBottomSheetDialogFragment.TAG)
}
}
deleteRl.setOnClickListener {
navTo(DeleteAccountFragment.newInstance(), DeleteAccountFragment.TAG)
Expand Down
32 changes: 0 additions & 32 deletions app/src/main/res/layout/fragment_landing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,38 +55,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<Button
style="@style/AppTheme.MaterialButton"
android:id="@+id/user_tv_1"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginBottom="16dp"
android:text="user1"
android:textColor="@color/white"
android:layout_marginStart="36dp"
android:layout_marginEnd="18dp"
android:textSize="14sp"
android:textFontWeight="500"
app:layout_constraintBottom_toTopOf="@id/create_tv"
app:layout_constraintEnd_toStartOf="@id/user_tv_2"
app:layout_constraintStart_toStartOf="parent" />

<Button
style="@style/AppTheme.MaterialButton"
android:id="@+id/user_tv_2"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginBottom="16dp"
android:text="user2"
android:textColor="@color/white"
android:layout_marginStart="18dp"
android:layout_marginEnd="36dp"
android:textSize="14sp"
android:textFontWeight="500"
app:layout_constraintBottom_toTopOf="@id/create_tv"
app:layout_constraintStart_toEndOf="@id/user_tv_1"
app:layout_constraintEnd_toEndOf="parent"/>

<Button
style="@style/AppTheme.MaterialButton"
android:id="@+id/create_tv"
Expand Down

0 comments on commit be49f08

Please sign in to comment.