You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Move asynctasks to seperate package
This commit is contained in:
23
app/src/main/java/com/topjohnwu/magisk/asyncs/LoadRepos.java
Normal file
23
app/src/main/java/com/topjohnwu/magisk/asyncs/LoadRepos.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.topjohnwu.magisk.asyncs;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
import com.topjohnwu.magisk.module.ModuleHelper;
|
||||
|
||||
public class LoadRepos extends ParallelTask<Void, Void, Void> {
|
||||
|
||||
public LoadRepos(Activity context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Void doInBackground(Void... voids) {
|
||||
ModuleHelper.createRepoMap(magiskManager);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Void v) {
|
||||
magiskManager.repoLoadDone.trigger();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user