Skip to content

Commit

Permalink
Optimize ShowNotificationHistoryAndLogEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
YifePlayte committed Dec 25, 2024
1 parent e51bd1f commit f86017b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ object ShowNotificationHistoryAndLogEntry : BaseHook() {
val preferenceManager = invokeMethodBestMatch(thisObject, "getPreferenceManager")!!
val context = invokeMethodBestMatch(preferenceManager, "getContext") as Context
invokeMethodBestMatch(
thisObject, "findPreference", null, "notification_settings"
)?.objectHelper {
thisObject, "findPreference", null, "notification_managing"
)?.objectHelper()?.invokeMethodBestMatch("getParent")?.objectHelper {
invokeMethodBestMatch(
"addPreference", null, generatePreferenceScreen(
context,
Expand Down Expand Up @@ -63,7 +63,7 @@ object ShowNotificationHistoryAndLogEntry : BaseHook() {
context: Context, resources: Resources, className: String, titleIdName: String
): Any {
val preferenceScreenForNotificationHistory =
loadClass("androidx.preference.PreferenceScreen").getDeclaredConstructor(
loadClass("androidx.preference.Preference").getDeclaredConstructor(
Context::class.java, AttributeSet::class.java
).newInstance(context, null)
invokeMethodBestMatch(
Expand Down

0 comments on commit f86017b

Please sign in to comment.