refactored some code
This commit is contained in:
parent
7200af0c00
commit
b11af88b99
2 changed files with 1 additions and 3 deletions
|
@ -32,6 +32,4 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_action_circle" />
|
||||
|
||||
|
||||
</LinearLayout>
|
|
@ -118,7 +118,6 @@ public class EditFavoriteGroupDialogFragment extends MenuBottomSheetDialogFragme
|
|||
items.add(byTypeItem);
|
||||
|
||||
final int themeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
|
||||
|
||||
final View changeColorView = View.inflate(new ContextThemeWrapper(getContext(), themeRes),
|
||||
R.layout.change_fav_color, null);
|
||||
((ImageView) changeColorView.findViewById(R.id.change_color_icon))
|
||||
|
@ -172,6 +171,7 @@ public class EditFavoriteGroupDialogFragment extends MenuBottomSheetDialogFragme
|
|||
getMyApplication().getFavorites()
|
||||
.editFavouriteGroup(group, group.name, group.color, visible);
|
||||
updateParentFragment();
|
||||
dismiss();
|
||||
}
|
||||
})
|
||||
.create();
|
||||
|
|
Loading…
Reference in a new issue