removing the install receiver used to fetch media right after installing
This commit is contained in:
parent
b0afe92afb
commit
236ceafe46
2 changed files with 0 additions and 24 deletions
|
@ -205,14 +205,6 @@
|
|||
android:resource="@xml/provider_paths"/>
|
||||
</provider>
|
||||
|
||||
<receiver
|
||||
android:name=".receivers.InstallReceiver"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="com.android.vending.INSTALL_REFERRER"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name=".receivers.RefreshMediaReceiver"
|
||||
android:exported="true">
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue