Loading app/build.gradle.kts +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ android { } dependencies { implementation("androidx.appcompat:appcompat:1.5.1") implementation("androidx.appcompat:appcompat:1.6.1") implementation("com.google.android.material:material:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") } Loading app/src/main/java/org/lineageos/recorder/RecorderActivity.java +6 −2 Original line number Diff line number Diff line Loading @@ -197,8 +197,12 @@ public class RecorderActivity extends AppCompatActivity { @Override protected void onStart() { super.onStart(); registerReceiver(mTelephonyReceiver, new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED)); ContextCompat.registerReceiver( this, mTelephonyReceiver, new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED), ContextCompat.RECEIVER_NOT_EXPORTED ); } @Override Loading app/src/main/java/org/lineageos/recorder/service/SoundRecorderService.java +6 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,12 @@ public class SoundRecorderService extends Service { public void onCreate() { super.onCreate(); registerReceiver(mShutdownReceiver, new IntentFilter(Intent.ACTION_SHUTDOWN)); ContextCompat.registerReceiver( this, mShutdownReceiver, new IntentFilter(Intent.ACTION_SHUTDOWN), ContextCompat.RECEIVER_NOT_EXPORTED ); mNotificationManager = getSystemService(NotificationManager.class); if (mNotificationManager != null && Loading Loading
app/build.gradle.kts +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ android { } dependencies { implementation("androidx.appcompat:appcompat:1.5.1") implementation("androidx.appcompat:appcompat:1.6.1") implementation("com.google.android.material:material:1.6.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") } Loading
app/src/main/java/org/lineageos/recorder/RecorderActivity.java +6 −2 Original line number Diff line number Diff line Loading @@ -197,8 +197,12 @@ public class RecorderActivity extends AppCompatActivity { @Override protected void onStart() { super.onStart(); registerReceiver(mTelephonyReceiver, new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED)); ContextCompat.registerReceiver( this, mTelephonyReceiver, new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED), ContextCompat.RECEIVER_NOT_EXPORTED ); } @Override Loading
app/src/main/java/org/lineageos/recorder/service/SoundRecorderService.java +6 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,12 @@ public class SoundRecorderService extends Service { public void onCreate() { super.onCreate(); registerReceiver(mShutdownReceiver, new IntentFilter(Intent.ACTION_SHUTDOWN)); ContextCompat.registerReceiver( this, mShutdownReceiver, new IntentFilter(Intent.ACTION_SHUTDOWN), ContextCompat.RECEIVER_NOT_EXPORTED ); mNotificationManager = getSystemService(NotificationManager.class); if (mNotificationManager != null && Loading