diff --git a/app/src/full/java/com/topjohnwu/magisk/components/UpdateCardHolder.java b/app/src/full/java/com/topjohnwu/magisk/components/UpdateCardHolder.java
index 583dee172..38e432a41 100644
--- a/app/src/full/java/com/topjohnwu/magisk/components/UpdateCardHolder.java
+++ b/app/src/full/java/com/topjohnwu/magisk/components/UpdateCardHolder.java
@@ -19,6 +19,7 @@ public class UpdateCardHolder {
@BindView(R.id.status) public TextView status;
@BindView(R.id.current_version) public TextView currentVersion;
@BindView(R.id.latest_version) public TextView latestVersion;
+ @BindView(R.id.additional) public TextView additional;
@BindView(R.id.install) public Button install;
public View itemView;
diff --git a/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskFragment.java b/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
index 6ab839762..79878ecee 100644
--- a/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
+++ b/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskFragment.java
@@ -57,8 +57,6 @@ public class MagiskFragment extends BaseFragment
@BindView(R.id.swipeRefreshLayout) SwipeRefreshLayout mSwipeRefreshLayout;
@BindView(R.id.linearLayout) LinearLayout root;
- @BindView(R.id.core_only_notice) CardView coreOnlyNotice;
-
@BindView(R.id.safetyNet_card) CardView safetyNetCard;
@BindView(R.id.safetyNet_refresh) ImageView safetyNetRefreshIcon;
@BindView(R.id.safetyNet_status) TextView safetyNetStatusText;
@@ -138,8 +136,6 @@ public class MagiskFragment extends BaseFragment
magisk = new UpdateCardHolder(inflater, root);
manager = new UpdateCardHolder(inflater, root);
- magisk.install.setOnClickListener(this::magiskInstall);
- manager.install.setOnClickListener(this::managerInstall);
root.addView(magisk.itemView, 0);
root.addView(manager.itemView, 1);
@@ -150,7 +146,17 @@ public class MagiskFragment extends BaseFragment
mSwipeRefreshLayout.setOnRefreshListener(this);
- coreOnlyNotice.setVisibility(Config.get(Config.Key.COREONLY) ? View.VISIBLE : View.GONE);
+ magisk.install.setOnClickListener(this::magiskInstall);
+ manager.install.setOnClickListener(this::managerInstall);
+ if (Config.get(Config.Key.COREONLY)) {
+ magisk.additional.setText(R.string.core_only_enabled);
+ magisk.additional.setVisibility(View.VISIBLE);
+ }
+ if (!app.getPackageName().equals(BuildConfig.APPLICATION_ID)) {
+ manager.additional.setText("(" + app.getPackageName() + ")");
+ manager.additional.setVisibility(View.VISIBLE);
+ }
+
safetyNetCard.setVisibility(hasGms() && Networking.checkNetworkStatus(app) ?
View.VISIBLE : View.GONE);
diff --git a/app/src/full/res/layout/fragment_magisk.xml b/app/src/full/res/layout/fragment_magisk.xml
index 961c91176..32a767000 100644
--- a/app/src/full/res/layout/fragment_magisk.xml
+++ b/app/src/full/res/layout/fragment_magisk.xml
@@ -19,45 +19,6 @@
android:layout_height="wrap_content"
android:orientation="vertical">
-
-
-
-
-
-
-
-
-
-
+
+