Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbfaffa4 authored by alperozturk's avatar alperozturk Committed by Tobias Kaminsky
Browse files

Apply correct theme

parent 94f16170
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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());
+2 −1
Original line number Diff line number Diff line
@@ -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">