Merge "Add new task flag when starting chooser activity in bug report." into oc-dev
am: 2981584b12
Change-Id: Ic3e10886851b94eb79202b404368c6c7696ca986
This commit is contained in:
@@ -981,6 +981,8 @@ public class BugreportProgressService extends Service {
|
|||||||
// Since we may be launched behind lockscreen, make sure that ChooserActivity doesn't finish
|
// Since we may be launched behind lockscreen, make sure that ChooserActivity doesn't finish
|
||||||
// itself in onStop.
|
// itself in onStop.
|
||||||
chooserIntent.putExtra(ChooserActivity.EXTRA_PRIVATE_RETAIN_IN_ON_STOP, true);
|
chooserIntent.putExtra(ChooserActivity.EXTRA_PRIVATE_RETAIN_IN_ON_STOP, true);
|
||||||
|
// Starting the activity from a service.
|
||||||
|
chooserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
context.startActivity(chooserIntent);
|
context.startActivity(chooserIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user