Fix su bottom sheet fragment mtb_colr

This commit is contained in:
2020-07-07 17:47:13 +02:00
parent 4edc493d36
commit 79cf00fe2f
9 changed files with 139 additions and 65 deletions

View File

@@ -31,19 +31,6 @@ public class MainApplication extends Application {
private static AppDatabase appDb;
private static Context context;
public static void exit() {
System.exit(0);
}
public static void restart() {
Intent mStartActivity = new Intent(context, MainActivity.class);
int mPendingIntentId = 123456;
PendingIntent mPendingIntent = PendingIntent.getActivity(context, mPendingIntentId, mStartActivity, PendingIntent.FLAG_CANCEL_CURRENT);
AlarmManager mgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 100, mPendingIntent);
System.exit(0);
}
// Called when the application is starting, before any other application objects have been created.
// Overriding this method is totally optional!