зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1417918 - Save current keyword before navigating to SelectFolderFragment. r=jwu
Same issue as bug 1374251 now that keywords are editable as well. MozReview-Commit-ID: AJyDRAAN2IR --HG-- extra : rebase_source : 8e99338ca8b4d79ea2ea95451d045476cb76ba51
This commit is contained in:
Родитель
07b162ff59
Коммит
d44422eff6
|
@ -175,9 +175,11 @@ public class BookmarkEditFragment extends DialogFragment implements SelectFolder
|
|||
return;
|
||||
}
|
||||
|
||||
// When coming back from SelectFolderFragment, we update view with data stored in `bookmark`,
|
||||
// so before navigating, we have to save current title from nameText into `bookmark`.
|
||||
// When coming back from SelectFolderFragment, we update the view with data stored in
|
||||
// `bookmark`, so before navigating, we have to save the current title and keyword
|
||||
// from the TextInputLayouts into `bookmark`.
|
||||
bookmark.title = nameText.getText().toString();
|
||||
bookmark.keyword = keywordText.getText().toString();
|
||||
|
||||
final SelectFolderFragment dialog = SelectFolderFragment.newInstance(bookmark.parentId, bookmark.id);
|
||||
dialog.setTargetFragment(BookmarkEditFragment.this, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче