diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/AccountChooserDialogFragment.java b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/AccountChooserDialogFragment.java
index c996970e..787a2cff 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/AccountChooserDialogFragment.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/AccountChooserDialogFragment.java
@@ -57,7 +57,7 @@ public class AccountChooserDialogFragment extends AppCompatDialogFragment implem
RecyclerView.Adapter adapter = new AccountChooserAdapter(accountsList, this, getActivity());
accountRecyclerView.setAdapter(adapter);
- return new AlertDialog.Builder(getActivity(), R.style.ncAlertDialog)
+ return new AlertDialog.Builder(getActivity())
.setView(view)
.setTitle(R.string.simple_move)
.setNegativeButton(android.R.string.cancel, null)
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryDialogFragment.java b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryDialogFragment.java
index 258699da..43240a76 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryDialogFragment.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryDialogFragment.java
@@ -137,7 +137,7 @@ public class CategoryDialogFragment extends AppCompatDialogFragment {
}
});
- return new AlertDialog.Builder(getActivity(), R.style.ncAlertDialog)
+ return new AlertDialog.Builder(getActivity())
.setTitle(R.string.change_category_title)
.setView(dialogView)
.setCancelable(true)
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteServerSyncHelper.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteServerSyncHelper.java
index 932aab9b..a9ca6fcf 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteServerSyncHelper.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteServerSyncHelper.java
@@ -1,6 +1,5 @@
package it.niedermann.owncloud.notes.persistence;
-import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ClipData;
import android.content.ClipboardManager;
@@ -17,6 +16,7 @@ import android.view.View;
import android.widget.Toast;
import androidx.appcompat.app.AlertDialog;
+import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.snackbar.Snackbar;
import com.nextcloud.android.sso.exceptions.NextcloudApiNotRespondingException;
@@ -427,11 +427,11 @@ public class NoteServerSyncHelper {
Log.e(TAG, e.getMessage(), e);
}
String statusMessage = context.getApplicationContext().getString(R.string.error_sync, context.getApplicationContext().getString(status.str));
- if (context instanceof ViewProvider && context instanceof Activity) {
+ if (context instanceof ViewProvider && context instanceof AppCompatActivity) {
Snackbar.make(((ViewProvider) context).getView(), statusMessage, Snackbar.LENGTH_LONG)
.setAction(R.string.simple_more, v -> {
- String debugInfos = ExceptionUtil.getDebugInfos((Activity) context, exceptions);
- new AlertDialog.Builder(context, R.style.ncAlertDialog)
+ String debugInfos = ExceptionUtil.getDebugInfos((AppCompatActivity) context, exceptions);
+ new AlertDialog.Builder(context)
.setTitle(statusMessage)
.setMessage(debugInfos)
.setPositiveButton(android.R.string.copy, (a, b) -> {
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 7c1ba746..b1298909 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -19,11 +19,11 @@
#757575
- #DFFFFFFF
+ #dfffffff
#000000
#ffffff
- #FFF
+ #ffffff
@color/primary
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 70516c53..e030cd19 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -8,20 +8,11 @@
- true
-
-