summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-12-17 23:19:25 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-12-17 23:19:25 +0100
commit2e33cbeb2035377691c8ea80e062bb4203aa2d06 (patch)
tree77198b8606c98d6e1aa3dbe74267d0a76c18039a /updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java
parentMerge "use epoll_create1" (diff)
parentAdd PrepareUpdateService. (diff)
downloadandroid_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar.gz
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar.bz2
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar.lz
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar.xz
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.tar.zst
android_bootable_recovery-2e33cbeb2035377691c8ea80e062bb4203aa2d06.zip
Diffstat (limited to 'updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java')
-rw-r--r--updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java b/updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java
index fc9fddd70..6d1e4c35a 100644
--- a/updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java
+++ b/updater_sample/src/com/example/android/systemupdatersample/ui/MainActivity.java
@@ -21,6 +21,7 @@ import android.app.AlertDialog;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
+import android.os.Handler;
import android.os.UpdateEngine;
import android.util.Log;
import android.view.View;
@@ -34,7 +35,6 @@ import com.example.android.systemupdatersample.R;
import com.example.android.systemupdatersample.UpdateConfig;
import com.example.android.systemupdatersample.UpdateManager;
import com.example.android.systemupdatersample.UpdaterState;
-import com.example.android.systemupdatersample.util.PayloadSpecs;
import com.example.android.systemupdatersample.util.UpdateConfigs;
import com.example.android.systemupdatersample.util.UpdateEngineErrorCodes;
import com.example.android.systemupdatersample.util.UpdateEngineStatuses;
@@ -67,7 +67,7 @@ public class MainActivity extends Activity {
private List<UpdateConfig> mConfigs;
private final UpdateManager mUpdateManager =
- new UpdateManager(new UpdateEngine(), new PayloadSpecs());
+ new UpdateManager(new UpdateEngine(), new Handler());
@Override
protected void onCreate(Bundle savedInstanceState) {