Giphy / giphy-android-sdk

Home of the GIPHY SDK Android example app, along with Android SDK documentation, issue tracking, & release notes.
https://developers.giphy.com/
Mozilla Public License 2.0
94 stars 37 forks source link

App name (Label) is displayed in the background for a split second while the `GiphyDialogFragment` is initialized #220

Closed ygag-gopikrishnan closed 1 month ago

ygag-gopikrishnan commented 7 months ago

🐛 Bug Report

App name is displayed in the background for a split second while the GiphyDialogFragment is initialized

To Reproduce

override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityGiphyContainerBinding.inflate(layoutInflater)
        window.decorView.setBackgroundColor(Color.TRANSPARENT)
        binding.container.setSystemUiVisibility(
            View.SYSTEM_UI_FLAG_LAYOUT_STABLE or
                    View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
        )
        setContentView(binding.root)
        settings.mediaTypeConfig = arrayOf(GPHContentType.gif, GPHContentType.sticker, GPHContentType.text, GPHContentType.emoji)
        val dialog =
            GiphyDialogFragment.newInstance(settings.copy(selectedContentType = contentType))
        dialog.gifSelectionListener = getGifSelectionListener()
        dialog.show(supportFragmentManager, "gifs_dialog")
    }

https://github.com/Giphy/giphy-android-sdk/assets/124232293/bf742e59-687d-4cff-9f3c-fa451b397a90

Expected behavior

Actual Behavior

(Write what happened. Add screenshots, if applicable.)

Your Environment

Reproducible Demo

ygag-gopikrishnan commented 6 months ago

Any updates on this? @ALexanderLonsky @bassemali @asobrien @vmorarian

ALexanderLonsky commented 6 months ago

Hey @ygag-gopikrishnan, I'm sorry for the late response. This issue does not seem to be that critical, I'll check it out later.

ygag-gopikrishnan commented 1 month ago

Fixed the issue with theming.