MessageView: use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET when viewing attachments.
Bug 2180995.
This commit is contained in:
parent
255dba84f1
commit
2bc47f24a4
@ -1543,7 +1543,8 @@ public class MessageView extends Activity implements OnClickListener {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(contentUri);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||
| Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
|
||||
startActivity(intent);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
mHandler.attachmentViewError();
|
||||
|
Loading…
Reference in New Issue
Block a user