mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Do not show negative button for several dialogs
This commit is contained in:
parent
4cf6ba25ca
commit
9f456a9b19
@ -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")) {
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user