Commit 9f456a9b authored by topjohnwu's avatar topjohnwu

Do not show negative button for several dialogs

parent 4cf6ba25
...@@ -36,7 +36,6 @@ public class MagiskInstallDialog extends CustomAlertDialog { ...@@ -36,7 +36,6 @@ public class MagiskInstallDialog extends CustomAlertDialog {
} }
new InstallMethodDialog(a, options).show(); new InstallMethodDialog(a, options).show();
}); });
setNegativeButton(R.string.no_thanks, null);
if (!TextUtils.isEmpty(Config.magiskNoteLink)) { if (!TextUtils.isEmpty(Config.magiskNoteLink)) {
setNeutralButton(R.string.release_notes, (d, i) -> { setNeutralButton(R.string.release_notes, (d, i) -> {
if (Config.magiskNoteLink.contains("forum.xda-developers")) { if (Config.magiskNoteLink.contains("forum.xda-developers")) {
......
...@@ -21,7 +21,6 @@ public class ManagerInstallDialog extends CustomAlertDialog { ...@@ -21,7 +21,6 @@ public class ManagerInstallDialog extends CustomAlertDialog {
setMessage(a.getString(R.string.repo_install_msg, name)); setMessage(a.getString(R.string.repo_install_msg, name));
setCancelable(true); setCancelable(true);
setPositiveButton(R.string.install, (d, i) -> DownloadApp.upgrade(name)); setPositiveButton(R.string.install, (d, i) -> DownloadApp.upgrade(name));
setNegativeButton(R.string.no_thanks, null);
if (!TextUtils.isEmpty(Config.managerNoteLink)) { if (!TextUtils.isEmpty(Config.managerNoteLink)) {
setNeutralButton(R.string.app_changelog, (d, i) -> MarkDownWindow.show(a, null, Config.managerNoteLink)); setNeutralButton(R.string.app_changelog, (d, i) -> MarkDownWindow.show(a, null, Config.managerNoteLink));
} }
......
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