mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 07:09:56 +01:00
Removed redundant flags from intent.
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package net.sf.briar.android;
|
package net.sf.briar.android;
|
||||||
|
|
||||||
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
|
|
||||||
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP;
|
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP;
|
||||||
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
|
|
||||||
import static android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP;
|
import static android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP;
|
||||||
import static java.util.logging.Level.INFO;
|
import static java.util.logging.Level.INFO;
|
||||||
|
|
||||||
@@ -46,10 +44,7 @@ public class BriarService extends RoboService {
|
|||||||
b.setWhen(0); // Don't show the time
|
b.setWhen(0); // Don't show the time
|
||||||
// Touch the notification to show the home screen
|
// Touch the notification to show the home screen
|
||||||
Intent i = new Intent(this, HomeScreenActivity.class);
|
Intent i = new Intent(this, HomeScreenActivity.class);
|
||||||
i.addFlags(FLAG_ACTIVITY_CLEAR_TASK);
|
i.setFlags(FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_SINGLE_TOP);
|
||||||
i.addFlags(FLAG_ACTIVITY_NEW_TASK);
|
|
||||||
i.addFlags(FLAG_ACTIVITY_CLEAR_TOP);
|
|
||||||
i.addFlags(FLAG_ACTIVITY_SINGLE_TOP);
|
|
||||||
PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0);
|
PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0);
|
||||||
b.setContentIntent(pi);
|
b.setContentIntent(pi);
|
||||||
b.setOngoing(true);
|
b.setOngoing(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user