fix interface

This commit is contained in:
Page Asgardius 2022-09-09 04:05:45 -07:00
parent 1f98f23e11
commit e2f010b218
2 changed files with 6 additions and 11 deletions

View file

@ -17,24 +17,29 @@
tools:targetApi="31">
<activity
android:name=".ImageViewer"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" />
<activity
android:name=".TextViewer"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" />
<activity
android:name=".WebBrowser"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" />
<activity
android:name=".AccountAdd"
android:exported="false" />
<activity
android:name=".ObjectSelect"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" />
<activity
android:name=".list_item"
android:exported="false" />
<activity
android:name=".BucketSelect"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" />
<activity
android:name=".VideoPlayer"

View file

@ -169,8 +169,8 @@ public class MainActivity extends AppCompatActivity {
try {
db.execSQL("DELETE FROM account where id=\""+ Name.get(position).toString()+ "\"");
Toast.makeText(getApplicationContext(),getResources().getString(R.string.accountdel_success), Toast.LENGTH_SHORT).show();
mainmenu();
db.close();
recreate();
} catch (Exception e) {
Toast.makeText(getApplicationContext(),getResources().getString(R.string.broken_database), Toast.LENGTH_SHORT).show();
}
@ -241,14 +241,4 @@ public class MainActivity extends AppCompatActivity {
startActivity(intent);
}
private void mainmenu() {
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("EXIT", true);
startActivity(intent);
}
}