Apply correct theme

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-07-22 16:25:55 +02:00 committed by Alper Öztürk
parent 3163a97be4
commit 4f7cf0f8b5
2 changed files with 3 additions and 3 deletions

View file

@ -18,14 +18,13 @@ import it.niedermann.owncloud.notes.databinding.ActivityPreferencesBinding;
public class PreferencesActivity extends LockedActivity {
private PreferencesViewModel viewModel;
private ActivityPreferencesBinding binding;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
viewModel = new ViewModelProvider(this).get(PreferencesViewModel.class);
PreferencesViewModel viewModel = new ViewModelProvider(this).get(PreferencesViewModel.class);
viewModel.resultCode$.observe(this, this::setResult);
binding = ActivityPreferencesBinding.inflate(getLayoutInflater());

View file

@ -86,7 +86,8 @@
<style name="PreferencesAlertDialogTheme" parent="MaterialAlertDialogTheme">
<!-- https://m3.material.io/components/dialogs/specs#6771d107-624e-47cc-b6d8-2b7b620ba2f1 -->
<item name="dialogCornerRadius">28dp</item>
<item name="android:background">?attr/colorSurface</item>
<item name="android:background">@color/primary</item>
<item name="android:textColor">@color/fg_default</item>
</style>
<style name="buttonStyle" parent="Widget.Material3.Button.TextButton.Dialog">