fix interface
This commit is contained in:
parent
1f98f23e11
commit
e2f010b218
2 changed files with 6 additions and 11 deletions
|
@ -17,24 +17,29 @@
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
<activity
|
<activity
|
||||||
android:name=".ImageViewer"
|
android:name=".ImageViewer"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".TextViewer"
|
android:name=".TextViewer"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".WebBrowser"
|
android:name=".WebBrowser"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".AccountAdd"
|
android:name=".AccountAdd"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".ObjectSelect"
|
android:name=".ObjectSelect"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".list_item"
|
android:name=".list_item"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".BucketSelect"
|
android:name=".BucketSelect"
|
||||||
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".VideoPlayer"
|
android:name=".VideoPlayer"
|
||||||
|
|
|
@ -169,8 +169,8 @@ public class MainActivity extends AppCompatActivity {
|
||||||
try {
|
try {
|
||||||
db.execSQL("DELETE FROM account where id=\""+ Name.get(position).toString()+ "\"");
|
db.execSQL("DELETE FROM account where id=\""+ Name.get(position).toString()+ "\"");
|
||||||
Toast.makeText(getApplicationContext(),getResources().getString(R.string.accountdel_success), Toast.LENGTH_SHORT).show();
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.accountdel_success), Toast.LENGTH_SHORT).show();
|
||||||
mainmenu();
|
|
||||||
db.close();
|
db.close();
|
||||||
|
recreate();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Toast.makeText(getApplicationContext(),getResources().getString(R.string.broken_database), Toast.LENGTH_SHORT).show();
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.broken_database), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
@ -241,14 +241,4 @@ public class MainActivity extends AppCompatActivity {
|
||||||
startActivity(intent);
|
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);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue