only start one confirm activity
This commit is contained in:
parent
815c3c17a9
commit
f160a49ef6
2 changed files with 14 additions and 1 deletions
|
@ -206,7 +206,8 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".interaction.actions.AcceptActivity"
|
||||
android:label="CPP">
|
||||
android:launchMode="singleInstance"
|
||||
android:label="ACCEPT">
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".interaction.actions.FillActivity"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package info.nightscout.androidaps.interaction.actions;
|
||||
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemClock;
|
||||
|
@ -140,4 +141,15 @@ public class AcceptActivity extends ViewSelectorActivity {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected synchronized void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
if(dismissThread != null) dismissThread.invalidate();
|
||||
Bundle extras = intent.getExtras();
|
||||
Intent msgIntent = new Intent(this, AcceptActivity.class);
|
||||
msgIntent.putExtras(extras);
|
||||
startActivity(msgIntent);
|
||||
finish();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue