Use flag_activity_multiple_task to stack missed call notifications

pull/14/head
Sam Bosley 13 years ago
parent 0e613f9017
commit e0a30bb3e3

@ -63,7 +63,7 @@ public class PhoneStateChangedReceiver extends BroadcastReceiver {
missedCallIntent.putExtra(MissedCallActivity.EXTRA_NUMBER, lastNumber); missedCallIntent.putExtra(MissedCallActivity.EXTRA_NUMBER, lastNumber);
missedCallIntent.putExtra(MissedCallActivity.EXTRA_NAME, name); missedCallIntent.putExtra(MissedCallActivity.EXTRA_NAME, name);
missedCallIntent.putExtra(MissedCallActivity.EXTRA_TIME, timeString); missedCallIntent.putExtra(MissedCallActivity.EXTRA_TIME, timeString);
missedCallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); missedCallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
context.startActivity(missedCallIntent); context.startActivity(missedCallIntent);
} }
} finally { } finally {

Loading…
Cancel
Save