1
0
mirror of https://github.com/areteruhiro/LIME-beta-hiro.git synced 2025-02-11 16:01:37 +09:00

アクティビティの挙動を修正

This commit is contained in:
Syuugo 2024-01-22 15:43:15 +09:00
parent 67b2b04bdc
commit 6d171eac5c
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
android:theme="@style/Theme.LIME"> android:theme="@style/Theme.LIME">
<activity <activity
android:name=".SettingsActivity" android:name=".SettingsActivity"
android:clearTaskOnLaunch="true"
android:exported="true" > android:exported="true" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@ -78,7 +78,7 @@ public class SettingsActivity extends AppCompatActivity {
.setPositiveButton(context.getString(R.string.dialog_positive), new DialogInterface.OnClickListener() { .setPositiveButton(context.getString(R.string.dialog_positive), new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
finish(); finishAndRemoveTask();
} }
}) })
.setCancelable(false) .setCancelable(false)