lbry-android/app/src/main/java/io/lbry/browser/receivers/NotificationDeletedReceiver.java
Akinwale Ariwodola a5799347ad
New build (#854)
* new project structure compatiable with Android Studio
2020-02-27 19:20:06 +01:00

17 lines
567 B
Java

package io.lbry.browser.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import io.lbry.browser.DownloadManager;
public class NotificationDeletedReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
int notificationId = intent.getExtras().getInt(DownloadManager.NOTIFICATION_ID_KEY);
if (DownloadManager.DOWNLOAD_NOTIFICATION_GROUP_ID == notificationId) {
DownloadManager.groupCreated = false;
}
}
}