OSDN Git Service

Remove the tab from the list of tabs so the ImageGrid will update.
authorPatrick Scott <phanna@android.com>
Tue, 28 Apr 2009 12:57:56 +0000 (08:57 -0400)
committerPatrick 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

index 42d2224..f95753a 100644 (file)
@@ -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;
         }