Use intermediate activity for search

This commit is contained in:
M66B
2018-12-06 15:27:30 +01:00
parent 77610730aa
commit 9fe22c7609
4 changed files with 37 additions and 9 deletions

View File

@@ -288,9 +288,9 @@ public class ServiceSynchronize extends LifecycleService {
PackageManager pm = getPackageManager();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (prefs.getBoolean("why", false) || why.resolveActivity(pm) == null) {
Intent main = new Intent(this, ActivityView.class);
main.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(main);
Intent view = new Intent(this, ActivityView.class);
view.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(view);
} else {
prefs.edit().putBoolean("why", true).apply();
startActivity(why);