File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/main/java/com/programminghoch10/DisableSounds Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ android {
10
10
minSdk = 17
11
11
targetSdk = 36
12
12
}
13
+
14
+ lint {
15
+ disable + = " ObsoleteSdkInt"
16
+ }
13
17
}
14
18
15
19
dependencies {
Original file line number Diff line number Diff line change 1
1
package com.programminghoch10.DisableSounds
2
2
3
- import android.annotation.SuppressLint
4
3
import android.content.Context
5
4
import android.media.MediaActionSound
6
5
import android.os.Build
@@ -13,7 +12,6 @@ import de.robv.android.xposed.XposedHelpers
13
12
import de.robv.android.xposed.callbacks.XC_LoadPackage
14
13
15
14
class DisableScreenshotSoundHook : IXposedHookLoadPackage {
16
- @SuppressLint(" ObsoleteSdkInt" )
17
15
override fun handleLoadPackage (lpparam : XC_LoadPackage .LoadPackageParam ) {
18
16
if (lpparam.packageName != " com.android.systemui" ) return
19
17
val sharedPreferences = XSharedPreferences (BuildConfig .APPLICATION_ID , SHARED_PREFERENCES_NAME )
Original file line number Diff line number Diff line change 1
1
package com.programminghoch10.DisableSounds
2
2
3
- import android.annotation.SuppressLint
4
3
import android.media.MediaActionSound
5
4
import android.os.Build
6
5
import de.robv.android.xposed.IXposedHookLoadPackage
@@ -10,7 +9,6 @@ import de.robv.android.xposed.XposedHelpers
10
9
import de.robv.android.xposed.callbacks.XC_LoadPackage
11
10
12
11
class DisableShutterSoundsHook : IXposedHookLoadPackage {
13
- @SuppressLint(" ObsoleteSdkInt" )
14
12
override fun handleLoadPackage (lpparam : XC_LoadPackage .LoadPackageParam ? ) {
15
13
val sharedPreferences = XSharedPreferences (BuildConfig .APPLICATION_ID , SHARED_PREFERENCES_NAME )
16
14
if (! sharedPreferences.getBoolean(" shutter" , false )) return
You can’t perform that action at this time.
0 commit comments