Do not show negative button for several dialogs

This commit is contained in:
topjohnwu 2019-02-03 03:32:16 -05:00
parent 4cf6ba25ca
commit 9f456a9b19
2 changed files with 0 additions and 2 deletions

View File

@ -36,7 +36,6 @@ public class MagiskInstallDialog extends CustomAlertDialog {
}
new InstallMethodDialog(a, options).show();
});
setNegativeButton(R.string.no_thanks, null);
if (!TextUtils.isEmpty(Config.magiskNoteLink)) {
setNeutralButton(R.string.release_notes, (d, i) -> {
if (Config.magiskNoteLink.contains("forum.xda-developers")) {

View File

@ -21,7 +21,6 @@ public class ManagerInstallDialog extends CustomAlertDialog {
setMessage(a.getString(R.string.repo_install_msg, name));
setCancelable(true);
setPositiveButton(R.string.install, (d, i) -> DownloadApp.upgrade(name));
setNegativeButton(R.string.no_thanks, null);
if (!TextUtils.isEmpty(Config.managerNoteLink)) {
setNeutralButton(R.string.app_changelog, (d, i) -> MarkDownWindow.show(a, null, Config.managerNoteLink));
}