Skip to content

Commit

Permalink
dynamic colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nin0-dev committed Sep 2, 2024
1 parent 726c17d commit 9e3dbf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/nin0dev/vendroid/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import android.widget.Toast
import com.android.volley.Request
import com.android.volley.toolbox.StringRequest
import com.android.volley.toolbox.Volley
import com.google.android.material.color.DynamicColors
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.gson.Gson
import com.nin0dev.vendroid.HttpClient.fetchVencord
Expand Down Expand Up @@ -77,7 +78,7 @@ class MainActivity : Activity() {
@SuppressLint("SetJavaScriptEnabled") // mad? watch this swag
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

DynamicColors.applyToActivitiesIfAvailable(application)
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
window.statusBarColor = Color.TRANSPARENT
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION)
Expand Down

0 comments on commit 9e3dbf2

Please sign in to comment.