mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 11:28:22 +00:00
Fix offline build
This commit is contained in:
@@ -201,6 +201,11 @@ class NostrSigner : Application() {
|
||||
}
|
||||
|
||||
suspend fun fetchProfileData(account: Account, onPictureFound: (String) -> Unit) {
|
||||
@Suppress("KotlinConstantConditions")
|
||||
if (BuildConfig.FLAVOR == "offline") {
|
||||
return
|
||||
}
|
||||
|
||||
SingletonImageLoader.setSafe {
|
||||
ImageLoader.Builder(this)
|
||||
.crossfade(true)
|
||||
|
||||
@@ -604,7 +604,8 @@ fun MainScreen(
|
||||
},
|
||||
icon = {
|
||||
if (it.route == Route.Accounts.route) {
|
||||
if (!profileUrl.isNullOrBlank()) {
|
||||
@Suppress("KotlinConstantConditions")
|
||||
if (!profileUrl.isNullOrBlank() && BuildConfig.FLAVOR != "offline") {
|
||||
AsyncImage(
|
||||
profileUrl,
|
||||
it.route,
|
||||
|
||||
Reference in New Issue
Block a user