Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Updater: Make NavBar background transparent on MIUI/HyperOS (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsummer233 authored Dec 16, 2023
1 parent 529b780 commit f82757a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/top/yukonga/update/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.SharedPreferences
import android.os.Build
import android.os.Bundle
import android.text.Html
import android.text.InputType
Expand Down Expand Up @@ -60,6 +61,9 @@ class MainActivity : AppCompatActivity() {

// Enable edge to edge.
enableEdgeToEdge()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
window.isNavigationBarContrastEnforced = false
}

// Inflate view.
_activityMainBinding = ActivityMainBinding.inflate(layoutInflater)
Expand Down

0 comments on commit f82757a

Please sign in to comment.