forked from organicmaps/organicmaps-tmp
[android] [bookmarks] dynamically change Activity Title
This commit is contained in:
parent
40879f5fdb
commit
322dc5d997
2 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class BookmarkActivity extends AbstractBookmarkActivity
|
|||
mPin = mManager.getBookmark(mPinPair.x, mPinPair.y);
|
||||
}
|
||||
mCurrentCategoryId = mPin.getCategoryId();
|
||||
setTitle(mPin.getName());
|
||||
setUpViews();
|
||||
}
|
||||
|
||||
|
@ -114,6 +115,7 @@ public class BookmarkActivity extends AbstractBookmarkActivity
|
|||
public void onTextChanged(CharSequence s, int start, int before, int count)
|
||||
{
|
||||
mPin.setName(s.toString());
|
||||
setTitle(s.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -116,6 +116,7 @@ public class BookmarkListActivity extends AbstractBookmarkListActivity
|
|||
{
|
||||
mEditedSet.setName(s.toString());
|
||||
}
|
||||
setTitle(s.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue