1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Start new activity with FLAG_ACTIVITY_NEW_TASK (fixes #1306)

This commit is contained in:
José Rebelo 2018-10-22 12:28:54 +01:00 committed by Carsten Pfeiffer
parent 7e9a9ca875
commit ca32a2b5ac

View File

@ -174,6 +174,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
switch (deviceEvent.event) {
case START:
Intent startIntent = new Intent(getContext(), FindPhoneActivity.class);
startIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(startIntent);
break;
case STOP: