Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Vitenko <AlexeiVitenko@gmail.com>2013-01-23 21:53:12 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:50:42 +0300
commit322dc5d997c732986164c6feab95d9d0458384c9 (patch)
tree814df77afffce830169fd8a745ae9d44ab5126f7 /android
parent40879f5fdb80632d287d9e6adf55f1b86b2df53f (diff)
[android] [bookmarks] dynamically change Activity Title
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/maps/bookmarks/BookmarkActivity.java2
-rw-r--r--android/src/com/mapswithme/maps/bookmarks/BookmarkListActivity.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/bookmarks/BookmarkActivity.java b/android/src/com/mapswithme/maps/bookmarks/BookmarkActivity.java
index ca01a7cea9..19005109c4 100644
--- a/android/src/com/mapswithme/maps/bookmarks/BookmarkActivity.java
+++ b/android/src/com/mapswithme/maps/bookmarks/BookmarkActivity.java
@@ -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
diff --git a/android/src/com/mapswithme/maps/bookmarks/BookmarkListActivity.java b/android/src/com/mapswithme/maps/bookmarks/BookmarkListActivity.java
index f7e8673c0a..418e0400a7 100644
--- a/android/src/com/mapswithme/maps/bookmarks/BookmarkListActivity.java
+++ b/android/src/com/mapswithme/maps/bookmarks/BookmarkListActivity.java
@@ -116,6 +116,7 @@ public class BookmarkListActivity extends AbstractBookmarkListActivity
{
mEditedSet.setName(s.toString());
}
+ setTitle(s.toString());
}
@Override