OSDN Git Service

Making switchState public
authorDoris Liu <tianliu@google.com>
Sat, 22 Sep 2012 05:44:42 +0000 (22:44 -0700)
committerDoris Liu <tianliu@google.com>
Sat, 22 Sep 2012 17:16:39 +0000 (10:16 -0700)
Bug: 7208910

switchState was only accessible within package com.android.gallery3d.app . Now
changing it to public so that it can be called from camera. This is part 1 of 2
in fixing the bug. Not sure if it's the best way to fix it. Comments are welcome.

Change-Id: I4aac46f640f2dd3aa973abd9610a37fa2842ed29

src/com/android/gallery3d/app/StateManager.java

index 7cc0ac4..c192a88 100644 (file)
@@ -193,7 +193,7 @@ public class StateManager {
         }
     }
 
-    void switchState(ActivityState oldState,
+    public void switchState(ActivityState oldState,
             Class<? extends ActivityState> klass, Bundle data) {
         Log.v(TAG, "switchState " + oldState + ", " + klass);
         if (oldState != mStack.peek().activityState) {