mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 14:15:44 +03:00
Remove sticky broadcast when read in UploadListActivity
This commit is contained in:
parent
f556c5d684
commit
b305e20b83
1 changed files with 8 additions and 2 deletions
|
@ -326,10 +326,16 @@ public class UploadListActivity extends FileActivity implements UploadListFragme
|
|||
*/
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
try {
|
||||
UploadListFragment uploadListFragment =
|
||||
(UploadListFragment) getSupportFragmentManager().findFragmentByTag(TAG_UPLOAD_LIST_FRAGMENT);
|
||||
|
||||
uploadListFragment.updateUploads();
|
||||
} finally {
|
||||
if (intent != null) {
|
||||
removeStickyBroadcast(intent);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue