Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit b3db0ef

Browse files
saketkumarkunall17
authored andcommitted
Auto cancel the PhotoViewActivity download notification.
1 parent 0e2fcee commit b3db0ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/zulip/android/activities/PhotoViewActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ protected void onPostExecute(String result) {
312312
intent.setDataAndType(uri, "image/*");
313313
PendingIntent pIntent = PendingIntent.getActivity(PhotoViewActivity.this, 0, intent, 0);
314314
mBuilder.setContentIntent(pIntent).build();
315+
mBuilder.setAutoCancel(true);
315316
mNotifyManager.notify(id, mBuilder.build());
316317

317318
}

0 commit comments

Comments
 (0)