|
|
|
@ -2,10 +2,8 @@
|
|
|
|
|
|
|
|
|
|
import android.Manifest
|
|
|
|
|
import android.app.Activity
|
|
|
|
|
import android.content.BroadcastReceiver
|
|
|
|
|
import android.content.Context
|
|
|
|
|
import android.content.Intent
|
|
|
|
|
import android.content.IntentFilter
|
|
|
|
|
import android.graphics.BitmapFactory
|
|
|
|
|
import android.net.Uri
|
|
|
|
|
import android.os.Bundle
|
|
|
|
@ -53,18 +51,10 @@ import androidx.compose.ui.tooling.preview.PreviewParameter
|
|
|
|
|
import androidx.core.view.isInvisible
|
|
|
|
|
import androidx.core.view.isVisible
|
|
|
|
|
import androidx.lifecycle.lifecycleScope
|
|
|
|
|
import androidx.localbroadcastmanager.content.LocalBroadcastManager
|
|
|
|
|
import com.canhub.cropper.CropImageContract
|
|
|
|
|
import com.squareup.phrase.Phrase
|
|
|
|
|
import dagger.hilt.android.AndroidEntryPoint
|
|
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
|
|
import kotlinx.coroutines.channels.awaitClose
|
|
|
|
|
import kotlinx.coroutines.flow.Flow
|
|
|
|
|
import kotlinx.coroutines.flow.callbackFlow
|
|
|
|
|
import kotlinx.coroutines.flow.map
|
|
|
|
|
import kotlinx.coroutines.flow.onStart
|
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
|
import kotlinx.coroutines.withContext
|
|
|
|
|
import network.loki.messenger.BuildConfig
|
|
|
|
|
import network.loki.messenger.R
|
|
|
|
|
import network.loki.messenger.databinding.ActivitySettingsBinding
|
|
|
|
@ -103,7 +93,6 @@ import org.thoughtcrime.securesms.ui.theme.PreviewTheme
|
|
|
|
|
import org.thoughtcrime.securesms.ui.theme.SessionColorsParameterProvider
|
|
|
|
|
import org.thoughtcrime.securesms.ui.theme.ThemeColors
|
|
|
|
|
import org.thoughtcrime.securesms.ui.theme.dangerButtonColors
|
|
|
|
|
import org.thoughtcrime.securesms.util.InternetConnectivity
|
|
|
|
|
import org.thoughtcrime.securesms.util.push
|
|
|
|
|
import java.io.File
|
|
|
|
|
import javax.inject.Inject
|
|
|
|
|