Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
681cda712f
2 changed files with 16 additions and 8 deletions
|
@ -47,7 +47,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/poi_dialog_name"
|
||||
android:imeOptions="actionSend"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="text"
|
||||
tools:text="@string/lorem_ipsum"/>
|
||||
|
||||
|
|
|
@ -189,12 +189,11 @@ public class EditPoiDialogFragment extends DialogFragment {
|
|||
Uri.parse("https://wiki.openstreetmap.org/wiki/Map_Features")));
|
||||
}
|
||||
});
|
||||
onlineDocumentationButton.setImageDrawable(
|
||||
getMyApplication().getIconsCache()
|
||||
.getPaintedContentIcon(R.drawable.ic_action_help,
|
||||
getResources().getColor(
|
||||
isLightTheme ? R.color.inactive_item_orange
|
||||
: R.color.dash_search_icon_dark)));
|
||||
|
||||
final int colorId = isLightTheme ? R.color.inactive_item_orange : R.color.dash_search_icon_dark;
|
||||
final int color = getResources().getColor(colorId);
|
||||
onlineDocumentationButton.setImageDrawable(getMyApplication().getIconsCache()
|
||||
.getPaintedContentIcon(R.drawable.ic_action_help, color));
|
||||
final ImageButton poiTypeButton = (ImageButton) view.findViewById(R.id.poiTypeButton);
|
||||
poiTypeButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
@ -268,6 +267,14 @@ public class EditPoiDialogFragment extends DialogFragment {
|
|||
return view;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
final Dialog dialog = super.onCreateDialog(savedInstanceState);
|
||||
dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||
return dialog;
|
||||
}
|
||||
|
||||
private void save() {
|
||||
if (TextUtils.isEmpty(poiTypeEditText.getText())) {
|
||||
poiTypeEditText.setError(getResources().getString(R.string.please_specify_poi_type));
|
||||
|
@ -600,6 +607,7 @@ public class EditPoiDialogFragment extends DialogFragment {
|
|||
return handled;
|
||||
}
|
||||
};
|
||||
|
||||
public interface OnFragmentActivatedListener {
|
||||
void onFragmentActivated();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue