Remove confusing scrambled "Manager" text

This commit is contained in:
topjohnwu 2020-02-11 19:55:21 -08:00
parent ffa85a616a
commit c586106e51
2 changed files with 2 additions and 11 deletions

View File

@ -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)

View File

@ -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"