Skip to content

Commit 0e81ebc

Browse files
committed
refactor: remove deprecated UI elements and update layout
- Removed references to mainTextApiWay in MainActivity as the view no longer exists. - Updated MaterialSwitch to allow text wrapping by removing singleLine and ellipsize properties. - Cleaned up activity_main.xml by removing unused TextViews and reorganizing layout for better structure and readability.
1 parent af76042 commit 0e81ebc

File tree

3 files changed

+221
-250
lines changed

3 files changed

+221
-250
lines changed

app/src/main/java/com/wizpizz/onepluspluslauncher/ui/activity/MainActivity.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
8383
else -> R.string.module_not_activated
8484
}
8585
)
86-
binding.mainTextApiWay.isVisible = YukiHookAPI.Status.isXposedModuleActive
87-
binding.mainTextApiWay.text = if (YukiHookAPI.Status.Executor.apiLevel > 0)
88-
"Activated by ${YukiHookAPI.Status.Executor.name} API ${YukiHookAPI.Status.Executor.apiLevel}"
89-
else "Activated by ${YukiHookAPI.Status.Executor.name}"
86+
// Removed mainTextApiWay references as the view no longer exists in the layout
9087
}
9188
}

app/src/main/java/com/wizpizz/onepluspluslauncher/ui/view/MaterialSwitch.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class MaterialSwitch(context: Context, attrs: AttributeSet?) : SwitchCompat(cont
4747
thumbColor.toInt(),
4848
thumbColor.toInt()
4949
)
50-
isSingleLine = true
51-
ellipsize = TextUtils.TruncateAt.END
50+
// Removed singleLine and ellipsize to allow text wrapping
51+
// isSingleLine = true
52+
// ellipsize = TextUtils.TruncateAt.END
5253
}
5354
}

0 commit comments

Comments
 (0)