removing the install receiver used to fetch media right after installing

This commit is contained in:
tibbi 2018-04-20 11:55:51 +02:00
parent b0afe92afb
commit 236ceafe46
2 changed files with 0 additions and 24 deletions

View file

@ -205,14 +205,6 @@
android:resource="@xml/provider_paths"/> android:resource="@xml/provider_paths"/>
</provider> </provider>
<receiver
android:name=".receivers.InstallReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
<receiver <receiver
android:name=".receivers.RefreshMediaReceiver" android:name=".receivers.RefreshMediaReceiver"
android:exported="true"> android:exported="true">

View file

@ -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()
}
}