forked from organicmaps/organicmaps
[android] [bookmarks] refresh bookmark category name, when user returns from CCA
This commit is contained in:
parent
41c17399c0
commit
35d3805f53
1 changed files with 5 additions and 7 deletions
|
@ -224,15 +224,13 @@ public class BookmarkActivity extends AbstractBookmarkActivity
|
|||
{
|
||||
if (requestCode == REQUEST_CODE_SET && resultCode == RESULT_OK)
|
||||
{
|
||||
if (data.getIntExtra(PIN_SET, -1) != mCurrentCategoryId)
|
||||
mCurrentCategoryId = data.getIntExtra(PIN_SET, -1);
|
||||
BookmarkCategory set = mManager.getCategoryById(mCurrentCategoryId);
|
||||
if (set != null)
|
||||
{
|
||||
mCurrentCategoryId = data.getIntExtra(PIN_SET, -1);
|
||||
BookmarkCategory set = mManager.getCategoryById(mCurrentCategoryId);
|
||||
if (set != null)
|
||||
{
|
||||
if (data.getIntExtra(PIN_SET, -1) != mCurrentCategoryId)
|
||||
mPin.setCategory(set.getName(), mCurrentCategoryId);
|
||||
mSetName.setText(set.getName());
|
||||
}
|
||||
mSetName.setText(set.getName());
|
||||
}
|
||||
}
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
|
|
Loading…
Add table
Reference in a new issue