Commit 4f626897 authored by topjohnwu's avatar topjohnwu

Cleanup

parent b127e018
...@@ -42,10 +42,6 @@ public class FlashActivity extends BaseActivity { ...@@ -42,10 +42,6 @@ public class FlashActivity extends BaseActivity {
private List<String> logs; private List<String> logs;
void dismiss() {
finish();
}
void reboot() { void reboot() {
Shell.su("/system/bin/reboot").submit(); Shell.su("/system/bin/reboot").submit();
} }
......
...@@ -52,7 +52,7 @@ public class ViewBinder { ...@@ -52,7 +52,7 @@ public class ViewBinder {
target.sv = target.findViewById(R.id.scrollView); target.sv = target.findViewById(R.id.scrollView);
target.reboot = target.findViewById(R.id.reboot); target.reboot = target.findViewById(R.id.reboot);
target.reboot.setOnClickListener(v -> target.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()); target.findViewById(R.id.save_logs).setOnClickListener(v -> target.saveLogs());
} }
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
android:visibility="gone"> android:visibility="gone">
<Button <Button
android:id="@+id/no_thanks" android:id="@+id/close"
style="?android:borderlessButtonStyle" style="?android:borderlessButtonStyle"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="50dp" android:layout_height="50dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment