From 236ceafe465b85db2657ba672292950c115ed1ca Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 20 Apr 2018 11:55:51 +0200 Subject: [PATCH] removing the install receiver used to fetch media right after installing --- app/src/main/AndroidManifest.xml | 8 -------- .../gallery/receivers/InstallReceiver.kt | 16 ---------------- 2 files changed, 24 deletions(-) delete mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/receivers/InstallReceiver.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b4915161f..09a160080 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -205,14 +205,6 @@ android:resource="@xml/provider_paths"/> - - - - - - diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/receivers/InstallReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/receivers/InstallReceiver.kt deleted file mode 100644 index fc3566bc0..000000000 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/receivers/InstallReceiver.kt +++ /dev/null @@ -1,16 +0,0 @@ -package com.simplemobiletools.gallery.receivers - -import android.content.BroadcastReceiver -import android.content.Context -import android.content.Intent -import com.google.gson.Gson -import com.simplemobiletools.gallery.asynctasks.GetDirectoriesAsynctask -import com.simplemobiletools.gallery.extensions.config - -class InstallReceiver : BroadcastReceiver() { - override fun onReceive(context: Context, intent: Intent) { - GetDirectoriesAsynctask(context, false, false) { - context.config.directories = Gson().toJson(it) - }.execute() - } -}