mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 10:35:26 +00:00
Added package name when it differs from the default one
This commit is contained in:
parent
a9b20dae33
commit
0e33632e79
@ -44,14 +44,14 @@ class HomeViewModel(
|
|||||||
MagiskState.OBSOLETE -> R.string.obsolete_md2.res()
|
MagiskState.OBSOLETE -> R.string.obsolete_md2.res()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val stateVersionMagisk = Info.magiskVersionString
|
val statePackageManager = packageName
|
||||||
val stateVersionManager = BuildConfig.VERSION_NAME
|
val statePackageOriginal = statePackageManager == BuildConfig.APPLICATION_ID
|
||||||
val stateVersionUpdateMagisk = KObservableField("")
|
val stateVersionUpdateMagisk = KObservableField("")
|
||||||
val stateVersionUpdateManager = KObservableField("")
|
val stateVersionUpdateManager = KObservableField("")
|
||||||
|
|
||||||
val stateHideManagerName = R.string.manager.res().let {
|
val stateHideManagerName = R.string.manager.res().let {
|
||||||
val result = R.string.manager.res()
|
val result = R.string.manager.res()
|
||||||
if (packageName != BuildConfig.APPLICATION_ID) {
|
if (!statePackageOriginal) {
|
||||||
result.replaceRandomWithSpecial(3)
|
result.replaceRandomWithSpecial(3)
|
||||||
} else {
|
} else {
|
||||||
result
|
result
|
||||||
|
@ -436,6 +436,15 @@
|
|||||||
android:textAppearance="?appearanceTextCaptionVariant"
|
android:textAppearance="?appearanceTextCaptionVariant"
|
||||||
tools:text="19.5 (12345)" />
|
tools:text="19.5 (12345)" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
gone="@{viewModel.statePackageOriginal}"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@{viewModel.statePackageManager}"
|
||||||
|
android:textAppearance="?appearanceTextCaptionVariant"
|
||||||
|
tools:text="com.soqspa.xmclaeixl" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
Loading…
Reference in New Issue
Block a user