Not good solution :(
This commit is contained in:
1 parent
ec5e0c7b25
commit
3283851dc4
13 files changed
+45
-32
No files matched your search
@@ -19,6 +19,7 @@ package com.hippo.ehviewer.ui;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
@@ -163,7 +164,7 @@ public final class CommonOperations {
|
||||
Intent intent = new Intent(activity, DownloadService.class);
|
||||
intent.setAction(DownloadService.ACTION_START);
|
||||
intent.putExtra(DownloadService.KEY_LABEL, label);
|
||||
intent.putExtra(DownloadService.KEY_GALLERY_INFO, gi);
|
||||
intent.putExtra(DownloadService.KEY_GALLERY_INFO, (Parcelable) gi);
|
||||
ContextCompat.startForegroundService(activity, intent);
|
||||
}
|
||||
// Notify
|
||||
@@ -193,7 +194,7 @@ public final class CommonOperations {
|
||||
Intent intent = new Intent(activity, DownloadService.class);
|
||||
intent.setAction(DownloadService.ACTION_START);
|
||||
intent.putExtra(DownloadService.KEY_LABEL, label1);
|
||||
intent.putExtra(DownloadService.KEY_GALLERY_INFO, gi);
|
||||
intent.putExtra(DownloadService.KEY_GALLERY_INFO, (Parcelable) gi);
|
||||
ContextCompat.startForegroundService(activity, intent);
|
||||
}
|
||||
// Save settings
|
||||
|
||||
Reference in new issue
Block a user