Skip to content

Commit ca9c936

Browse files
suppress ObsoleteSdkInt lint for DisableSounds module
1 parent 6ff5479 commit ca9c936

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

DisableSounds/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ android {
1010
minSdk = 17
1111
targetSdk = 36
1212
}
13+
14+
lint {
15+
disable += "ObsoleteSdkInt"
16+
}
1317
}
1418

1519
dependencies {

DisableSounds/src/main/java/com/programminghoch10/DisableSounds/DisableScreenshotSoundHook.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import de.robv.android.xposed.XposedHelpers
1313
import de.robv.android.xposed.callbacks.XC_LoadPackage
1414

1515
class DisableScreenshotSoundHook : IXposedHookLoadPackage {
16-
@SuppressLint("ObsoleteSdkInt")
1716
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam) {
1817
if (lpparam.packageName != "com.android.systemui") return
1918
val sharedPreferences = XSharedPreferences(BuildConfig.APPLICATION_ID, SHARED_PREFERENCES_NAME)

DisableSounds/src/main/java/com/programminghoch10/DisableSounds/DisableShutterSoundsHook.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import de.robv.android.xposed.XposedHelpers
1010
import de.robv.android.xposed.callbacks.XC_LoadPackage
1111

1212
class DisableShutterSoundsHook : IXposedHookLoadPackage {
13-
@SuppressLint("ObsoleteSdkInt")
1413
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam?) {
1514
val sharedPreferences = XSharedPreferences(BuildConfig.APPLICATION_ID, SHARED_PREFERENCES_NAME)
1615
if (!sharedPreferences.getBoolean("shutter", false))

0 commit comments

Comments
 (0)