System.exit(0);
};
- // Restart the activity after 200 milliseconds, so that the app has enough time to save the change to the preference.
- restartHandler.postDelayed(restartRunnable, 200);
+ // Restart the activity after 400 milliseconds, so that the app has enough time to save the change to the preference.
+ restartHandler.postDelayed(restartRunnable, 400);
}
}
\ No newline at end of file