Organize dialog code

This commit is contained in:
topjohnwu
2018-07-28 22:52:40 +08:00
parent 27851bdefa
commit a747fdd27d
15 changed files with 403 additions and 334 deletions
@@ -6,7 +6,7 @@ import android.support.annotation.NonNull;
import android.support.v4.app.JobIntentService;
import com.topjohnwu.magisk.utils.Const;
import com.topjohnwu.magisk.utils.ShowUI;
import com.topjohnwu.magisk.utils.NotificationMgr;
import com.topjohnwu.superuser.Shell;
import com.topjohnwu.superuser.ShellUtils;
@@ -28,6 +28,6 @@ public class OnBootService extends JobIntentService {
Shell shell = Shell.newInstance();
if (shell.getStatus() >= Shell.ROOT_SHELL &&
Boolean.parseBoolean(ShellUtils.fastCmd(shell, "mm_patch_dtbo")))
ShowUI.dtboPatchedNotification();
NotificationMgr.dtboPatched();
}
}