mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Remove confusing scrambled "Manager" text
This commit is contained in:
parent
ffa85a616a
commit
c586106e51
@ -44,8 +44,7 @@ class HomeViewModel(
|
|||||||
val stateMagiskRemoteVersion = KObservableField(R.string.loading.res())
|
val stateMagiskRemoteVersion = KObservableField(R.string.loading.res())
|
||||||
val stateMagiskInstalledVersion get() =
|
val stateMagiskInstalledVersion get() =
|
||||||
"${Info.env.magiskVersionString} (${Info.env.magiskVersionCode})"
|
"${Info.env.magiskVersionString} (${Info.env.magiskVersionCode})"
|
||||||
val stateMagiskMode get() = (if (Config.coreOnly)
|
val stateMagiskMode get() = (if (Config.coreOnly) R.string.home_status_safe else R.string.home_status_normal).res()
|
||||||
R.string.home_status_safe else R.string.home_status_normal).res()
|
|
||||||
val stateMagiskProgress = KObservableField(0)
|
val stateMagiskProgress = KObservableField(0)
|
||||||
|
|
||||||
val stateManagerRemoteVersion = KObservableField(R.string.loading.res())
|
val stateManagerRemoteVersion = KObservableField(R.string.loading.res())
|
||||||
@ -55,14 +54,6 @@ class HomeViewModel(
|
|||||||
val statePackageName = packageName
|
val statePackageName = packageName
|
||||||
val stateManagerProgress = KObservableField(0)
|
val stateManagerProgress = KObservableField(0)
|
||||||
|
|
||||||
val stateHideManagerName = R.string.manager.res().let {
|
|
||||||
if (packageName != BuildConfig.APPLICATION_ID) {
|
|
||||||
it.replaceRandomWithSpecial(3)
|
|
||||||
} else {
|
|
||||||
it
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
val items = listOf(DeveloperItem.Mainline, DeveloperItem.App, DeveloperItem.Project)
|
val items = listOf(DeveloperItem.Mainline, DeveloperItem.App, DeveloperItem.Project)
|
||||||
val itemBinding = itemBindingOf<HomeItem> {
|
val itemBinding = itemBindingOf<HomeItem> {
|
||||||
it.bindExtra(BR.viewModel, this)
|
it.bindExtra(BR.viewModel, this)
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/l1"
|
android:layout_marginStart="@dimen/l1"
|
||||||
android:text="@{viewModel.stateHideManagerName}"
|
android:text="@string/manager"
|
||||||
android:textAppearance="@style/AppearanceFoundation.Title"
|
android:textAppearance="@style/AppearanceFoundation.Title"
|
||||||
android:textColor="?colorPrimary"
|
android:textColor="?colorPrimary"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/home_manager_icon"
|
app:layout_constraintBottom_toBottomOf="@+id/home_manager_icon"
|
||||||
|
Loading…
Reference in New Issue
Block a user