From 4f626897f20311d0d7f04cf9b9c16fa043bee838 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 29 Sep 2018 00:28:12 -0400 Subject: [PATCH] Cleanup --- app/src/full/java/com/topjohnwu/magisk/FlashActivity.java | 4 ---- app/src/full/java/com/topjohnwu/magisk/ViewBinder.java | 2 +- app/src/full/res/layout/activity_flash.xml | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/FlashActivity.java b/app/src/full/java/com/topjohnwu/magisk/FlashActivity.java index 9da5edd6c..964667f2c 100644 --- a/app/src/full/java/com/topjohnwu/magisk/FlashActivity.java +++ b/app/src/full/java/com/topjohnwu/magisk/FlashActivity.java @@ -42,10 +42,6 @@ public class FlashActivity extends BaseActivity { private List logs; - void dismiss() { - finish(); - } - void reboot() { Shell.su("/system/bin/reboot").submit(); } diff --git a/app/src/full/java/com/topjohnwu/magisk/ViewBinder.java b/app/src/full/java/com/topjohnwu/magisk/ViewBinder.java index ecaf39dd1..cdcdd6c59 100644 --- a/app/src/full/java/com/topjohnwu/magisk/ViewBinder.java +++ b/app/src/full/java/com/topjohnwu/magisk/ViewBinder.java @@ -52,7 +52,7 @@ public class ViewBinder { target.sv = target.findViewById(R.id.scrollView); target.reboot = target.findViewById(R.id.reboot); target.reboot.setOnClickListener(v -> target.reboot()); - target.findViewById(R.id.no_thanks).setOnClickListener(v -> target.finish()); + target.findViewById(R.id.close).setOnClickListener(v -> target.finish()); target.findViewById(R.id.save_logs).setOnClickListener(v -> target.saveLogs()); } diff --git a/app/src/full/res/layout/activity_flash.xml b/app/src/full/res/layout/activity_flash.xml index d33e6e726..b9aa35605 100644 --- a/app/src/full/res/layout/activity_flash.xml +++ b/app/src/full/res/layout/activity_flash.xml @@ -42,7 +42,7 @@ android:visibility="gone">