From e9c60eff858491309c53358e8d9a535211c0ecb6 Mon Sep 17 00:00:00 2001
From: krlvm <51774833+krlvm@users.noreply.github.com>
Date: Tue, 30 Mar 2021 00:01:22 +0300
Subject: [PATCH] Cleanup
---
.../newpipe/local/subscription/ImportConfirmationDialog.java | 3 +--
.../schabi/newpipe/settings/PeertubeInstanceListFragment.java | 2 +-
.../org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java | 2 +-
app/src/main/res/values/styles_misc.xml | 3 ---
4 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java b/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java
index 17ae7b1c0..20b112cb4 100644
--- a/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java
+++ b/app/src/main/java/org/schabi/newpipe/local/subscription/ImportConfirmationDialog.java
@@ -11,7 +11,6 @@ import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import org.schabi.newpipe.R;
-import org.schabi.newpipe.util.ThemeHelper;
import icepick.Icepick;
import icepick.State;
@@ -41,7 +40,7 @@ public class ImportConfirmationDialog extends DialogFragment {
@Override
public Dialog onCreateDialog(@Nullable final Bundle savedInstanceState) {
assureCorrectAppLanguage(getContext());
- return new AlertDialog.Builder(getContext(), ThemeHelper.getDialogTheme(getContext()))
+ return new AlertDialog.Builder(getContext())
.setMessage(R.string.import_network_expensive_warning)
.setCancelable(true)
.setNegativeButton(R.string.cancel, null)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java b/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java
index 74585e12b..550e9be3f 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java
@@ -186,7 +186,7 @@ public class PeertubeInstanceListFragment extends Fragment {
}
private void restoreDefaults() {
- new AlertDialog.Builder(requireContext(), ThemeHelper.getDialogTheme(requireContext()))
+ new AlertDialog.Builder(requireContext())
.setTitle(R.string.restore_defaults)
.setMessage(R.string.restore_defaults_confirmation)
.setNegativeButton(R.string.cancel, null)
diff --git a/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java
index bb45c8ff7..9c1a9bdd7 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java
@@ -140,7 +140,7 @@ public class ChooseTabsFragment extends Fragment {
}
private void restoreDefaults() {
- new AlertDialog.Builder(requireContext(), ThemeHelper.getDialogTheme(requireContext()))
+ new AlertDialog.Builder(requireContext())
.setTitle(R.string.restore_defaults)
.setMessage(R.string.restore_defaults_confirmation)
.setNegativeButton(R.string.cancel, null)
diff --git a/app/src/main/res/values/styles_misc.xml b/app/src/main/res/values/styles_misc.xml
index b31702fbf..0b35c7af8 100644
--- a/app/src/main/res/values/styles_misc.xml
+++ b/app/src/main/res/values/styles_misc.xml
@@ -68,9 +68,6 @@
-