mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 22:36:26 +02:00
Refactors the lambda used for content resolvers.
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
package com.vitorpamplona.amethyst
|
package com.vitorpamplona.amethyst
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
|
import android.content.ContentResolver
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Looper
|
import android.os.Looper
|
||||||
import android.os.StrictMode
|
import android.os.StrictMode
|
||||||
@@ -78,6 +79,8 @@ class Amethyst : Application() {
|
|||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun contentResolverFn(): ContentResolver = contentResolver
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
|
||||||
|
@@ -176,7 +176,7 @@ fun LoggedInPage(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
contentResolver = { Amethyst.instance.contentResolver },
|
contentResolver = Amethyst.instance::contentResolverFn,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ fun LoggedInPage(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
contentResolver = { Amethyst.instance.contentResolver },
|
contentResolver = Amethyst.instance::contentResolverFn,
|
||||||
)
|
)
|
||||||
onDispose {
|
onDispose {
|
||||||
accountViewModel.account.signer.launcher
|
accountViewModel.account.signer.launcher
|
||||||
|
@@ -198,7 +198,7 @@ fun LoginPage(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
contentResolver = { Amethyst.instance.contentResolver },
|
contentResolver = Amethyst.instance::contentResolverFn,
|
||||||
)
|
)
|
||||||
onDispose { externalSignerLauncher.clearLauncher() }
|
onDispose { externalSignerLauncher.clearLauncher() }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user