Fixed resurfaced app menu multiplying bug.

This commit is contained in:
ottoptj 2024-08-09 18:34:15 +03:00
commit eb251c1ae5

View file

@ -23,7 +23,8 @@ import com.google.android.material.textfield.TextInputEditText
class UIUtils {
fun setBackground(window: Window, preferences: SharedPreferences) {
window.setBackgroundDrawable(ColorDrawable(Color.parseColor("#00000000")))
window.decorView.background = ColorDrawable(Color.parseColor("#00000000"))
window.decorView.setBackgroundColor(
Color.parseColor(preferences.getString("bgColor", "#00000000"))
)