Skip to content

Commit

Permalink
refactor: remove old MyAccount activity
Browse files Browse the repository at this point in the history
- update usage to new LoginFragment
  • Loading branch information
criticalAY committed Feb 1, 2025
1 parent a1df79f commit 0ac3c3b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 542 deletions.
6 changes: 0 additions & 6 deletions AnkiDroid/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,6 @@
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/download_deck"
android:theme="@style/Theme.MaterialComponents.NoActionBar" />
<activity
android:name="com.ichi2.anki.LoginActivity"
android:label="@string/menu_my_account"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>

<activity android:name=".IntroductionActivity"
android:exported="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import android.os.Bundle
import androidx.activity.result.ActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.content.edit
import com.ichi2.anki.account.AccountActivity
import com.ichi2.anki.introduction.SetupCollectionFragment
import com.ichi2.anki.introduction.SetupCollectionFragment.CollectionSetupOption
import com.ichi2.anki.introduction.SetupCollectionFragment.Companion.handleCollectionSetupOption
Expand Down Expand Up @@ -68,7 +69,8 @@ class IntroductionActivity : AnkiActivity() {

private fun openLoginDialog() {
Timber.i("Opening login screen")
onLoginResult.launch(Intent(this, LoginActivity::class.java))
val intent = AccountActivity.getIntent(this)
onLoginResult.launch(intent)
}

private fun startDeckPicker(result: Int = RESULT_START_NEW) {
Expand Down
80 changes: 0 additions & 80 deletions AnkiDroid/src/main/java/com/ichi2/anki/LoginActivity.kt

This file was deleted.

Loading

0 comments on commit 0ac3c3b

Please sign in to comment.