From a9dc1b32e070f9182c0e158f43c0e97a01d32fec Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 11 Jan 2017 19:18:27 +0800 Subject: [PATCH] Add release notes to install button --- app/src/main/java/com/topjohnwu/magisk/InstallFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/InstallFragment.java b/app/src/main/java/com/topjohnwu/magisk/InstallFragment.java index 891a6a93c..4a598df69 100644 --- a/app/src/main/java/com/topjohnwu/magisk/InstallFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/InstallFragment.java @@ -1,6 +1,8 @@ package com.topjohnwu.magisk; import android.app.Fragment; +import android.content.Intent; +import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.CardView; @@ -62,6 +64,9 @@ public class InstallFragment extends Fragment implements CallbackHandler.EventLi new MagiskDlReceiver(finalBootImage, keepEncChkbox.isChecked(), keepVerityChkbox.isChecked()), StatusFragment.magiskLink, Utils.getLegalFilename(filename))) + .setNeutralButton(R.string.check_release_notes, (dialog, which) -> { + getActivity().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(StatusFragment.releaseNoteLink))); + }) .setNegativeButton(R.string.no_thanks, null) .show(); });