Skip to content

Commit 597a3d2

Browse files
committed
Added redirection from AccountsActivity to MainActivity
Signed-off-by: Arnau Mora <[email protected]>
1 parent 0e59334 commit 597a3d2

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Diff for: app/src/main/AndroidManifest.xml

+8
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
</intent-filter>
7171
</activity>
7272

73+
<!--
74+
Left here for external apps.
75+
Automatically redirects to MainActivity.
76+
Should be removed in the future.
77+
-->
78+
<!--suppress DeprecatedClassUsageInspection -->
79+
<activity android:name=".ui.AccountsActivity" android:exported="true" />
80+
7381
<activity
7482
android:name=".ui.AboutActivity"
7583
android:label="@string/navigation_drawer_about"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
3+
*/
4+
5+
package at.bitfire.davdroid.ui
6+
7+
import android.content.Intent
8+
import android.os.Bundle
9+
import androidx.appcompat.app.AppCompatActivity
10+
11+
@Deprecated("Automatically redirects to MainActivity. Should be removed in the future.")
12+
class AccountsActivity: AppCompatActivity() {
13+
override fun onCreate(savedInstanceState: Bundle?) {
14+
super.onCreate(savedInstanceState)
15+
16+
startActivity(
17+
Intent(this, MainActivity::class.java).apply {
18+
action = intent.action
19+
}
20+
)
21+
}
22+
}

0 commit comments

Comments
 (0)