mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 13:51:25 +02:00
Fixes F-droid build
This commit is contained in:
@@ -53,7 +53,7 @@ object PushDistributorHandler : PushDistributorActions {
|
|||||||
endpointInternal = ""
|
endpointInternal = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
fun appContext(): Context = Amethyst.instance.applicationContext
|
fun appContext(): Context = Amethyst.instance.appContext
|
||||||
|
|
||||||
override fun getSavedDistributor(): String = unifiedPush.getSavedDistributor(appContext()) ?: ""
|
override fun getSavedDistributor(): String = unifiedPush.getSavedDistributor(appContext()) ?: ""
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@ class PushMessageReceiver : MessagingReceiver() {
|
|||||||
private val TAG = "Amethyst-OSSPushReceiver"
|
private val TAG = "Amethyst-OSSPushReceiver"
|
||||||
}
|
}
|
||||||
|
|
||||||
private val appContext = Amethyst.instance.applicationContext
|
private val appContext = Amethyst.instance.appContext
|
||||||
private val scope = Amethyst.instance.applicationIOScope
|
private val scope = Amethyst.instance.applicationIOScope
|
||||||
private val eventCache = LruCache<String, String>(100)
|
private val eventCache = LruCache<String, String>(100)
|
||||||
private val pushHandler = PushDistributorHandler
|
private val pushHandler = PushDistributorHandler
|
||||||
|
@@ -217,7 +217,7 @@ fun PushNotificationSettingsRow(sharedPrefs: UiSettingsFlow) {
|
|||||||
SettingsRow(
|
SettingsRow(
|
||||||
R.string.push_server_title,
|
R.string.push_server_title,
|
||||||
R.string.push_server_explainer,
|
R.string.push_server_explainer,
|
||||||
selectedItens = readableListWithExplainer,
|
selectedItems = readableListWithExplainer,
|
||||||
selectedIndex = list.indexOf(currentDistributor),
|
selectedIndex = list.indexOf(currentDistributor),
|
||||||
) { index ->
|
) { index ->
|
||||||
if (list[index] == "None") {
|
if (list[index] == "None") {
|
||||||
|
Reference in New Issue
Block a user