Skip to content

Commit

Permalink
fix: use dynamic colors theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Aug 12, 2024
1 parent c41c45b commit 0960c1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/xtr/keymapper/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import androidx.annotation.StringRes;
import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.color.DynamicColors;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.topjohnwu.superuser.Shell;

Expand Down Expand Up @@ -54,7 +53,6 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
DynamicColors.applyToActivitiesIfAvailable(getApplication());
binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.XtMapper" parent="Theme.Material3.DayNight.NoActionBar">
<style name="Theme.XtMapper" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar">
<item name="android:statusBarColor">?android:colorBackground</item>
</style>

Expand Down

0 comments on commit 0960c1e

Please sign in to comment.