forked from organicmaps/organicmaps
[android] Added enabling/disabling option menu, added corrected activity name
This commit is contained in:
parent
6988249795
commit
5c536b0254
2 changed files with 9 additions and 1 deletions
|
@ -469,7 +469,7 @@
|
|||
|
||||
<activity
|
||||
android:name="com.mapswithme.maps.ugc.routes.EditCategoryDescriptionActivity"
|
||||
android:label="@string/name"/>
|
||||
android:label="@string/description"/>
|
||||
|
||||
<service
|
||||
android:name="com.mapswithme.maps.background.WorkerService"
|
||||
|
|
|
@ -100,6 +100,14 @@ public abstract class BaseEditUserBookmarkCategoryFragment extends BaseMwmToolba
|
|||
inflater.inflate(R.menu.menu_bookmark_category_restriction, menu);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPrepareOptionsMenu(Menu menu)
|
||||
{
|
||||
super.onPrepareOptionsMenu(menu);
|
||||
MenuItem item = menu.findItem(R.id.done);
|
||||
item.setVisible(mEditText.getEditableText().length() > 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue