File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/src/main/java/com/klee/sapio/ui/view Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import com.klee.sapio.data.Rating
2828import com.klee.sapio.databinding.ActivityEvaluationsBinding
2929import com.klee.sapio.ui.viewmodel.AppEvaluationsViewModel
3030import dagger.hilt.android.AndroidEntryPoint
31+ import kotlinx.coroutines.delay
3132import kotlinx.coroutines.flow.MutableSharedFlow
3233import kotlinx.coroutines.flow.combine
3334import kotlinx.coroutines.flow.launchIn
@@ -53,6 +54,7 @@ class EvaluationsActivity : AppCompatActivity() {
5354 const val EXTRA_PACKAGE_NAME = " packageName"
5455 const val EXTRA_APP_NAME = " appName"
5556 const val EXTRA_SHARE_IMMEDIATELY = " shareImmediately"
57+ const val IMAGE_LOADING_DELAY_IN_MS = 200L
5658 }
5759
5860 @RequiresApi(Build .VERSION_CODES .O )
@@ -193,6 +195,7 @@ class EvaluationsActivity : AppCompatActivity() {
193195 isFirstResource : Boolean
194196 ): Boolean {
195197 lifecycleScope.launch {
198+ delay(IMAGE_LOADING_DELAY_IN_MS )
196199 iconReceived.emit(true )
197200 }
198201 return false
You can’t perform that action at this time.
0 commit comments