Fixes F-droid build

This commit is contained in:
Vitor Pamplona
2025-09-11 19:02:58 -04:00
parent 35a123a185
commit 00a3918d20
3 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ object PushDistributorHandler : PushDistributorActions {
endpointInternal = ""
}
fun appContext(): Context = Amethyst.instance.applicationContext
fun appContext(): Context = Amethyst.instance.appContext
override fun getSavedDistributor(): String = unifiedPush.getSavedDistributor(appContext()) ?: ""

View File

@@ -42,7 +42,7 @@ class PushMessageReceiver : MessagingReceiver() {
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 eventCache = LruCache<String, String>(100)
private val pushHandler = PushDistributorHandler

View File

@@ -217,7 +217,7 @@ fun PushNotificationSettingsRow(sharedPrefs: UiSettingsFlow) {
SettingsRow(
R.string.push_server_title,
R.string.push_server_explainer,
selectedItens = readableListWithExplainer,
selectedItems = readableListWithExplainer,
selectedIndex = list.indexOf(currentDistributor),
) { index ->
if (list[index] == "None") {