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 2d4b302 commit 25e9a69
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 545 deletions.
1 change: 0 additions & 1 deletion AnkiDroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ android {
// make the icon red if in debug mode
resValue 'color', 'anki_foreground_icon_color_0', "#FFFF0000"
resValue 'color', 'anki_foreground_icon_color_1', "#FFFF0000"
resValue "string", "applicationId", "${defaultConfig.applicationId}${applicationIdSuffix}"
}
named('release') {
testCoverageEnabled = testReleaseBuild
Expand Down
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 25e9a69

Please sign in to comment.