File tree Expand file tree Collapse file tree
src/main/java/bluepie/ad_silence Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android {
1010 applicationId " bluepie.ad_silence"
1111 minSdk 21
1212 targetSdk 31
13- versionCode 8
13+ versionCode 10
1414 versionName " 0.4.0"
1515
1616 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
@@ -23,6 +23,11 @@ android {
2323
2424 proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
2525 }
26+
27+ debug {
28+ minifyEnabled false
29+ shrinkResources false
30+ }
2631 }
2732 compileOptions {
2833 sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class NotificationListener : NotificationListenerService() {
5555 Log .v(TAG , " Not an ad" )
5656 isMuted.takeIf { b -> b }?.also {
5757 isMuted = false
58- this @run .unmute(
58+ this .unmute(
5959 audioManager,
6060 appNotificationHelper,
6161 this @with.getApp()
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class Utils {
5353 } else {
5454 audioManager?.setStreamMute(AudioManager .STREAM_MUSIC , true )
5555 }
56+ Log .v(TAG ," device music steam muted" )
5657 addNotificationHelper?.updateNotification(" AdSilence, ad-detected" )
5758 }
5859
@@ -70,6 +71,7 @@ class Utils {
7071 } else {
7172 audioManager?.setStreamMute(AudioManager .STREAM_MUSIC , false )
7273 }
74+ Log .v(TAG , " device music stream unmuted" )
7375 addNotificationHelper?.updateNotification(" AdSilence, listening for ads" )
7476 }
7577
You can’t perform that action at this time.
0 commit comments