diff --git a/app/build.gradle b/app/build.gradle
index 258a91c06..08ee53190 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -34,7 +34,7 @@ android {
minSdk 21
// Not supporting notification runtime permission yet.
//noinspection OldTargetApi
- targetSdk 33
+ targetSdk 34
versionCode 33
versionName '1.6.1'
resValue 'string', 'app_version', versionName + ' (' + versionCode + ')'
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 87e66a657..f7b28e0f8 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -17,6 +17,7 @@
+
-
+
-
+
>() {
init {
loadValue()
- application.registerReceiver(
+ application.registerReceiverCompat(
object : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
loadValue()
@@ -36,7 +38,7 @@ object StorageVolumeListLiveData : LiveData>() {
// The "file" data scheme is required to receive these broadcasts.
// @see https://stackoverflow.com/a/7143298
addDataScheme(ContentResolver.SCHEME_FILE)
- }
+ }, ContextCompat.RECEIVER_NOT_EXPORTED
)
}