mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
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"/>
|
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">
|
||||||
|
|
|
@ -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