OSDN Git Service
(root)
/
android-x86
/
packages-apps-Browser.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20abe04
)
Remove the tab from the list of tabs so the ImageGrid will update.
author
Patrick Scott
<phanna@android.com>
Tue, 28 Apr 2009 12:57:56 +0000
(08:57 -0400)
committer
Patrick Scott
<phanna@android.com>
Tue, 28 Apr 2009 12:57:56 +0000
(08:57 -0400)
I removed this by accident when removing the clearPictureListeners method. This
fixes a NPE when touching a removed tab in the tab picker.
BUG=
1816205
src/com/android/browser/ImageAdapter.java
patch
|
blob
|
history
diff --git
a/src/com/android/browser/ImageAdapter.java
b/src/com/android/browser/ImageAdapter.java
index
42d2224
..
f95753a
100644
(file)
--- a/
src/com/android/browser/ImageAdapter.java
+++ b/
src/com/android/browser/ImageAdapter.java
@@
-100,6
+100,7
@@
public class ImageAdapter implements ListAdapter {
*/
public void remove(int index) {
if (index >= 0 && index < mItems.size()) {
+ mItems.remove(index);
notifyObservers();
mMaxedOut = false;
}