diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/BasePreferenceFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/BasePreferenceFragment.kt index ce407ddca..331802824 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/BasePreferenceFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/ui/BasePreferenceFragment.kt @@ -13,6 +13,7 @@ import org.koitharu.kotatsu.core.prefs.AppSettings import org.koitharu.kotatsu.core.ui.util.RecyclerViewOwner import org.koitharu.kotatsu.core.ui.util.WindowInsetsDelegate import org.koitharu.kotatsu.core.util.ext.getThemeColor +import org.koitharu.kotatsu.core.util.ext.parentView import org.koitharu.kotatsu.settings.SettingsActivity import javax.inject.Inject @@ -33,7 +34,8 @@ abstract class BasePreferenceFragment(@StringRes private val titleId: Int) : override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.setBackgroundColor(view.context.getThemeColor(android.R.attr.colorBackground)) + val themedContext = (view.parentView ?: view).context + view.setBackgroundColor(themedContext.getThemeColor(android.R.attr.colorBackground)) listView.clipToPadding = false insetsDelegate.onViewCreated(view) insetsDelegate.addInsetsListener(this) diff --git a/app/src/main/res/layout-w600dp-land/activity_categories.xml b/app/src/main/res/layout-w600dp-land/activity_categories.xml deleted file mode 100644 index a7c07c39e..000000000 --- a/app/src/main/res/layout-w600dp-land/activity_categories.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - -