From 232d9f83dab00b5aa090dde22a490bf239a8373c Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Sun, 15 Apr 2018 10:47:26 +0300 Subject: [PATCH] Make MenuBottomSheetDialogFragment#isNightMode private --- .../src/net/osmand/plus/base/MenuBottomSheetDialogFragment.java | 2 +- .../wikivoyage/article/WikivoyageArticleContentsFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/base/MenuBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/base/MenuBottomSheetDialogFragment.java index 6ca1f973c3..d187857aee 100644 --- a/OsmAnd/src/net/osmand/plus/base/MenuBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/base/MenuBottomSheetDialogFragment.java @@ -250,7 +250,7 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra return nightMode ? R.drawable.bg_bottom_sheet_sides_landscape_dark : R.drawable.bg_bottom_sheet_sides_landscape_light; } - protected boolean isNightMode() { + private boolean isNightMode() { if (usedOnMap) { return getMyApplication().getDaynightHelper().isNightModeForMapControls(); } diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleContentsFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleContentsFragment.java index b5a52f0c55..3d8e1df10a 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleContentsFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleContentsFragment.java @@ -202,7 +202,7 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag } TextView lblListHeader = (TextView) convertView.findViewById(R.id.item_label); lblListHeader.setText(headerTitle); - lblListHeader.setTextColor(getResolvedColor(isNightMode() ? R.color.wikivoyage_contents_parent_icon_dark : R.color.wikivoyage_contents_parent_icon_light)); + lblListHeader.setTextColor(getResolvedColor(nightMode ? R.color.wikivoyage_contents_parent_icon_dark : R.color.wikivoyage_contents_parent_icon_light)); lblListHeader.setCompoundDrawablesWithIntrinsicBounds(itemGroupIcon, null, null, null); adjustIndicator(getMyApplication(), groupPosition, isExpanded, convertView, !nightMode);