Start new activity with FLAG_ACTIVITY_NEW_TASK (fixes #1306)

This commit is contained in:
José Rebelo
2018-11-01 22:49:02 +01:00
committed by Carsten Pfeiffer
parent 7e9a9ca875
commit ca32a2b5ac
@@ -174,6 +174,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
switch (deviceEvent.event) { switch (deviceEvent.event) {
case START: case START:
Intent startIntent = new Intent(getContext(), FindPhoneActivity.class); Intent startIntent = new Intent(getContext(), FindPhoneActivity.class);
startIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(startIntent); context.startActivity(startIntent);
break; break;
case STOP: case STOP: