mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-13 20:01:17 +08:00
Compare commits
10 Commits
5b78fbbae4
...
aafc06dbaa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aafc06dbaa | ||
|
|
17cc81e98b | ||
|
|
0000786a27 | ||
|
|
3aca588693 | ||
|
|
cd731f7a21 | ||
|
|
5e35cfb3e3 | ||
|
|
daa3c02d1a | ||
|
|
f83d439374 | ||
|
|
176682fa38 | ||
|
|
c02d9e1874 |
@@ -12,8 +12,8 @@ android {
|
||||
applicationId = "com.lt2333.simplicitytools"
|
||||
minSdk = 31
|
||||
targetSdk = 32
|
||||
versionCode = 57
|
||||
versionName = "1.5.6"
|
||||
versionCode = 58
|
||||
versionName = "1.5.7"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
||||
@@ -931,6 +931,19 @@ class SettingsActivity : MIUIActivity() {
|
||||
3
|
||||
)
|
||||
)
|
||||
add(
|
||||
TextV(
|
||||
resId = R.string.maximum_number_of_notification_dots
|
||||
)
|
||||
)
|
||||
add(
|
||||
SeekBarWithTextV(
|
||||
"maximum_number_of_notification_dots",
|
||||
0,
|
||||
4,
|
||||
3
|
||||
)
|
||||
)
|
||||
add(
|
||||
TextSummaryArrowV(
|
||||
TextSummaryV(
|
||||
|
||||
@@ -5,18 +5,16 @@ import com.github.kyuubiran.ezxhelper.utils.hookMethod
|
||||
import com.lt2333.simplicitytools.util.hasEnable
|
||||
import com.lt2333.simplicitytools.util.xposed.base.HookRegister
|
||||
|
||||
object ForceSupportSendApp: HookRegister() {
|
||||
|
||||
object ForceSupportSendApp : HookRegister() {
|
||||
override fun init() {
|
||||
findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") {
|
||||
name == "isSupportSendApp"
|
||||
}.hookMethod {
|
||||
after { param ->
|
||||
hasEnable("force_support_send_app") {
|
||||
hasEnable("force_support_send_app") {
|
||||
findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") {
|
||||
name == "isSupportSendApp"
|
||||
}.hookMethod {
|
||||
after { param ->
|
||||
param.result = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,12 +6,13 @@ import com.lt2333.simplicitytools.util.xposed.base.HookRegister
|
||||
object MaximumNumberOfNotificationIcons: HookRegister() {
|
||||
|
||||
override fun init() {
|
||||
val size = XSPUtils.getInt("maximum_number_of_notification_icons",3)
|
||||
val icons = XSPUtils.getInt("maximum_number_of_notification_icons",3)
|
||||
val dots = XSPUtils.getInt("maximum_number_of_notification_dots",3)
|
||||
"com.android.systemui.statusbar.phone.NotificationIconContainer".replaceMethod(getDefaultClassLoader(), "miuiShowNotificationIcons", Boolean::class.java) {
|
||||
if (it.args[0] as Boolean) {
|
||||
it.thisObject.setIntField("MAX_DOTS", size)
|
||||
it.thisObject.setIntField("MAX_STATIC_ICONS", size)
|
||||
it.thisObject.setIntField("MAX_VISIBLE_ICONS_ON_LOCK", size)
|
||||
it.thisObject.setIntField("MAX_DOTS", dots)
|
||||
it.thisObject.setIntField("MAX_STATIC_ICONS", icons)
|
||||
it.thisObject.setIntField("MAX_VISIBLE_ICONS_ON_LOCK", icons)
|
||||
} else {
|
||||
it.thisObject.setIntField("MAX_DOTS", 0)
|
||||
it.thisObject.setIntField("MAX_STATIC_ICONS", 0)
|
||||
|
||||
@@ -305,8 +305,8 @@ object StatusBarLayout : HookRegister() {
|
||||
(statusIcons.parent as ViewGroup).removeView(statusIcons)
|
||||
(systemIcons.parent as ViewGroup).removeView(systemIcons)
|
||||
(battery.parent as ViewGroup).removeView(battery)
|
||||
(notificationIconAreaInner.parent as ViewGroup).removeView(
|
||||
notificationIconAreaInner
|
||||
(fullscreenNotificationIconArea.parent as ViewGroup).removeView(
|
||||
fullscreenNotificationIconArea
|
||||
)
|
||||
|
||||
val mConstraintLayout =
|
||||
@@ -317,7 +317,7 @@ object StatusBarLayout : HookRegister() {
|
||||
)
|
||||
}
|
||||
|
||||
mConstraintLayout.addView(notificationIconAreaInner)
|
||||
mConstraintLayout.addView(fullscreenNotificationIconArea)
|
||||
mConstraintLayout.addView(battery)
|
||||
|
||||
|
||||
@@ -329,14 +329,14 @@ object StatusBarLayout : HookRegister() {
|
||||
}
|
||||
|
||||
|
||||
notificationIconAreaInner.layoutParams = ConstraintLayout.LayoutParams(
|
||||
fullscreenNotificationIconArea.layoutParams = ConstraintLayout.LayoutParams(
|
||||
0,
|
||||
ConstraintLayout.LayoutParams.MATCH_PARENT
|
||||
).also {
|
||||
it.startToEnd = batteryId
|
||||
it.endToEnd = 0
|
||||
}
|
||||
notificationIconAreaInner.layoutDirection = View.LAYOUT_DIRECTION_RTL
|
||||
fullscreenNotificationIconArea.layoutDirection = View.LAYOUT_DIRECTION_RTL
|
||||
|
||||
|
||||
//增加一个左对齐布局
|
||||
|
||||
@@ -194,4 +194,6 @@
|
||||
<string name="clock_right">Reloj a la derecha</string>
|
||||
<string name="status_bar_layout_mode">Modo de diseño de barra de estado</string>
|
||||
<string name="clock_center_and_icon_left">Centrar reloj e icono a la izquierda</string>
|
||||
<string name="maximum_number_of_notification_icons">Número máximo de iconos de notificación</string>
|
||||
<string name="maximum_number_of_notification_dots">Número máximo de puntos de notificaciones</string>
|
||||
</resources>
|
||||
|
||||
@@ -194,4 +194,6 @@
|
||||
<string name="clock_right">Ceas la dreapta</string>
|
||||
<string name="status_bar_layout_mode">Aspect bară de stare</string>
|
||||
<string name="clock_center_and_icon_left">Ceas la centru și pictograme în stânga</string>
|
||||
<string name="maximum_number_of_notification_icons">Numărul maxim de pictograme de notificare</string>
|
||||
<string name="maximum_number_of_notification_dots">Numărul maxim de puncte de notificare</string>
|
||||
</resources>
|
||||
|
||||
@@ -198,4 +198,6 @@
|
||||
<string name="clock_right">Часы справа</string>
|
||||
<string name="status_bar_layout_mode">Стиль строки состояния</string>
|
||||
<string name="clock_center_and_icon_left">Часы по центру и иконки слева</string>
|
||||
<string name="maximum_number_of_notification_icons">Максимальное количество значков уведомлений</string>
|
||||
<string name="maximum_number_of_notification_dots">Максимальное количество значков уведомлений</string>
|
||||
</resources>
|
||||
|
||||
@@ -195,4 +195,6 @@
|
||||
<string name="clock_right">Saat Sağ</string>
|
||||
<string name="status_bar_layout_mode">Durum çubuğu düzeni modu</string>
|
||||
<string name="clock_center_and_icon_left">Saat Merkezi ve Sol Simge</string>
|
||||
<string name="maximum_number_of_notification_icons">Maksimum bildirim simgesi sayısı</string>
|
||||
<string name="maximum_number_of_notification_dots">Maksimum bildirim noktası sayısı</string>
|
||||
</resources>
|
||||
|
||||
@@ -195,4 +195,5 @@
|
||||
<string name="status_bar_layout_mode">状态栏布局模式</string>
|
||||
<string name="clock_center_and_icon_left">时间居中+左侧图标</string>
|
||||
<string name="maximum_number_of_notification_icons">通知图标最大数量</string>
|
||||
<string name="maximum_number_of_notification_dots">通知点数最大数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<string name="status_bar_time_period">顯示時段</string>
|
||||
<string name="status_bar_time_double_line">雙行顯示</string>
|
||||
<string name="status_bar_clock_size">時鐘大小(0:不更改)</string>
|
||||
<string name="status_bar_clock_double_line_size">雙排大小(0:不更改)</string>
|
||||
<string name="status_bar_clock_double_line_size">雙行大小(0:不更改)</string>
|
||||
<string name="matters_needing_attention">功能無法生效?</string>
|
||||
<string name="Done">確定</string>
|
||||
<string name="about_module_summary">查看模組相關訊息</string>
|
||||
@@ -170,7 +170,7 @@
|
||||
<string name="status_bar_dual_row_network_speed">雙行網路速度</string>
|
||||
<string name="status_bar_dual_row_network_speed_summary">上下行網路速度顯示</string>
|
||||
<string name="status_bar_network_speed">狀態欄網路速度</string>
|
||||
<string name="status_bar_network_speed_dual_row_size">雙排大小(0:不更改)</string>
|
||||
<string name="status_bar_network_speed_dual_row_size">雙行大小(0:不更改)</string>
|
||||
<string name="status_bar_network_speed_dual_row_icon">雙行圖示</string>
|
||||
<string name="none">無</string>
|
||||
<string name="status_bar_network_speed_dual_row_gravity">雙行網速對齊</string>
|
||||
@@ -188,9 +188,12 @@
|
||||
<string name="big_mobile_type_icon_left_and_right_margins">大行動網路圖示左右邊距</string>
|
||||
<string name="cast">接力</string>
|
||||
<string name="force_support_send_app">允許所有應用使用接力</string>
|
||||
<string name="status_bar_time_double_line_center_align">雙排居中對齊</string>
|
||||
<string name="status_bar_time_double_line_center_align">雙行居中對齊</string>
|
||||
<string name="default1">預設值</string>
|
||||
<string name="clock_center">時鐘置中</string>
|
||||
<string name="clock_right">時鐘置右</string>
|
||||
<string name="status_bar_layout_mode">狀態欄布局模式</string>
|
||||
<string name="clock_center_and_icon_left">時間居中+圖示置左</string>
|
||||
<string name="maximum_number_of_notification_icons">通知圖示最大數量</string>
|
||||
<string name="maximum_number_of_notification_dots">通知點點數量</string>
|
||||
</resources>
|
||||
|
||||
@@ -199,4 +199,5 @@
|
||||
<string name="status_bar_layout_mode">Status bar layout mode</string>
|
||||
<string name="clock_center_and_icon_left">Clock Center and Icon Left</string>
|
||||
<string name="maximum_number_of_notification_icons">Maximum number of notification icons</string>
|
||||
<string name="maximum_number_of_notification_dots">Maximum number of notification dots</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user