Skip to content

Commit

Permalink
Fix the flashing between transitions (#371) (#428)
Browse files Browse the repository at this point in the history
Co-authored-by: AntmanLFE <[email protected]>
  • Loading branch information
AntmanLFEz and AntmanLFEz authored Jun 6, 2023
1 parent 59371bc commit 90ccfe6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/jerboa/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.jerboa

import android.app.Application
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.os.Build
import android.os.Bundle
Expand Down Expand Up @@ -98,6 +100,8 @@ class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))

val accountSync = getCurrentAccountSync(accountViewModel)
fetchInitialData(accountSync, siteViewModel, homeViewModel)

Expand Down

0 comments on commit 90ccfe6

Please sign in to comment.