refactor arguments for shared element transitions
This commit is contained in:
parent
7d43f7e9ae
commit
589f966655
11 changed files with 28 additions and 37 deletions
|
|
@ -30,20 +30,13 @@ public class DownloadService extends Service {
|
|||
public static final String EXTRA_SONG = PACKAGE_NAME + ".extra.song";
|
||||
|
||||
private Executor executor;
|
||||
private Handler handler;
|
||||
private DownloadNotification notification;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
Looper looper = Looper.myLooper();
|
||||
if (looper == null) {
|
||||
looper = Looper.getMainLooper();
|
||||
}
|
||||
|
||||
executor = Executors.newFixedThreadPool(4);
|
||||
handler = new Handler(looper);
|
||||
notification = new DownloadNotification(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue