fix using new icon refresh
This commit is contained in:
parent
9e12512d51
commit
7a5ffdeeb6
2 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ public class UpdatesIndexFragment extends OsmAndListFragment implements Download
|
||||||
AndroidUtils.setTextPrimaryColor(app, tvTitle, nightMode);
|
AndroidUtils.setTextPrimaryColor(app, tvTitle, nightMode);
|
||||||
countView = view.findViewById(R.id.description);
|
countView = view.findViewById(R.id.description);
|
||||||
AndroidUtils.setTextSecondaryColor(app, countView, nightMode);
|
AndroidUtils.setTextSecondaryColor(app, countView, nightMode);
|
||||||
Drawable additionalIconDrawable = AppCompatResources.getDrawable(app, R.drawable.ic_action_refresh_dark);
|
Drawable additionalIconDrawable = AppCompatResources.getDrawable(app, R.drawable.ic_action_update);
|
||||||
UiUtilities.tintDrawable(additionalIconDrawable, ContextCompat.getColor(app, getDefaultIconColorId(nightMode)));
|
UiUtilities.tintDrawable(additionalIconDrawable, ContextCompat.getColor(app, getDefaultIconColorId(nightMode)));
|
||||||
((ImageView) view.findViewById(R.id.additional_button_icon)).setImageDrawable(additionalIconDrawable);
|
((ImageView) view.findViewById(R.id.additional_button_icon)).setImageDrawable(additionalIconDrawable);
|
||||||
LinearLayout additionalButton = view.findViewById(R.id.additional_button);
|
LinearLayout additionalButton = view.findViewById(R.id.additional_button);
|
||||||
|
|
|
@ -262,7 +262,7 @@ public class LiveUpdatesSettingsDialogFragmentNew extends MenuBottomSheetDialogF
|
||||||
AndroidUtils.setMargins(itemUpdateNowParams, AndroidUtils.dpToPx(app, 12), AndroidUtils.dpToPx(app, 12), AndroidUtils.dpToPx(app, 16), AndroidUtils.dpToPx(app, 12));
|
AndroidUtils.setMargins(itemUpdateNowParams, AndroidUtils.dpToPx(app, 12), AndroidUtils.dpToPx(app, 12), AndroidUtils.dpToPx(app, 16), AndroidUtils.dpToPx(app, 12));
|
||||||
itemUpdateNowButton.setLayoutParams(itemUpdateNowParams);
|
itemUpdateNowButton.setLayoutParams(itemUpdateNowParams);
|
||||||
((AppCompatImageView) itemUpdateNowButton.findViewById(R.id.button_icon)).setImageDrawable(
|
((AppCompatImageView) itemUpdateNowButton.findViewById(R.id.button_icon)).setImageDrawable(
|
||||||
ContextCompat.getDrawable(app, R.drawable.ic_action_refresh_dark));
|
ContextCompat.getDrawable(app, R.drawable.ic_action_update));
|
||||||
UiUtilities.setupDialogButton(nightMode, itemUpdateNowButton, UiUtilities.DialogButtonType.SECONDARY, app.getResources().getString(R.string.update_now));
|
UiUtilities.setupDialogButton(nightMode, itemUpdateNowButton, UiUtilities.DialogButtonType.SECONDARY, app.getResources().getString(R.string.update_now));
|
||||||
itemUpdateNowButton.setMinimumHeight(AndroidUtils.dpToPx(app, app.getResources().getDimension(R.dimen.dialog_button_height)));
|
itemUpdateNowButton.setMinimumHeight(AndroidUtils.dpToPx(app, app.getResources().getDimension(R.dimen.dialog_button_height)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue