From 2b4059cdcd8014265b3ec7f06b9502cebb9e9972 Mon Sep 17 00:00:00 2001 From: Paul Westbrook Date: Thu, 30 Aug 2012 14:33:03 -0700 Subject: Allow action bar to be updated Allow the action bar to be updated when the photo list loader loads data Bug: 7082929 Change-Id: I476df1fa2ec7dcb1adfe5aed359a5126c60be179 --- photoviewer/src/com/android/ex/photo/PhotoViewActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java index 54feada..5231ca1 100644 --- a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java +++ b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java @@ -320,9 +320,15 @@ public class PhotoViewActivity extends Activity implements mViewPager.setCurrentItem(itemIndex, false); setViewActivated(); } + // Update the any action items + updateActionItems(); } } + protected void updateActionItems() { + // Do nothing, but allow extending classes to do work + } + private synchronized void notifyCursorListeners(Cursor data) { // tell all of the objects listening for cursor changes // that the cursor has changed -- cgit v1.2.3