diff options
-rw-r--r-- | src/com/android/browser/AddBookmarkPage.java | 1 | ||||
-rw-r--r-- | src/com/android/browser/addbookmark/FolderSpinnerAdapter.java | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index f330cd5..32db550 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -959,6 +959,7 @@ public class AddBookmarkPage extends Activity long root = mAccountAdapter.getItem(position).rootFolderId; if (root != mRootFolder) { onRootFolderFound(root); + mFolderAdapter.clearRecentFolder(); } } } diff --git a/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java b/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java index 67563c0..f86c9c6 100644 --- a/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java +++ b/src/com/android/browser/addbookmark/FolderSpinnerAdapter.java @@ -154,4 +154,10 @@ public class FolderSpinnerAdapter extends BaseAdapter { notifyDataSetChanged(); } + public void clearRecentFolder() { + if (mIncludesRecentFolder) { + mIncludesRecentFolder = false; + notifyDataSetChanged(); + } + } } |