OSDN Git Service

Remove photos from gallery2 manifest
authorJohn Reck <jreck@google.com>
Fri, 19 Apr 2013 17:04:12 +0000 (10:04 -0700)
committerJohn Reck <jreck@google.com>
Fri, 19 Apr 2013 21:12:55 +0000 (14:12 -0700)
 Bug: 8659787

Change-Id: I72c85db38b3f7409a2ce84b2a6a7b7ccab41a351

AndroidManifest.xml

index 64cb3b9..040519d 100644 (file)
              </intent-filter>
         </activity>
 
-        <activity
-                android:name="com.android.photos.GalleryActivity"
-                android:label="@string/app_name"
-                android:configChanges="keyboardHidden|orientation|screenSize"
-                android:theme="@style/Theme.Photos.Gallery"
-                android:uiOptions="splitActionBarWhenNarrow">
+        <activity android:name="com.android.gallery3d.app.Gallery" android:label="@string/app_name"
+                android:configChanges="keyboardHidden|orientation|screenSize">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.DEFAULT" />
                 <data android:mimeType="vnd.android.cursor.dir/image" />
                 <data android:mimeType="vnd.android.cursor.dir/video" />
             </intent-filter>
-        </activity>
-        <activity
-                android:name="com.android.photos.AlbumActivity"
-                android:configChanges="keyboardHidden|orientation|screenSize"
-                android:theme="@style/Theme.Photos.Gallery"
-                android:uiOptions="splitActionBarWhenNarrow"
-                android:exported="false">
-       </activity>
-       <activity
-                android:name="com.android.gallery3d.app.Gallery"
-                android:label="@string/app_name"
-                android:configChanges="keyboardHidden|orientation|screenSize">
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
         </activity>
 
-        <activity android:name="com.android.photos.FullscreenViewer"
-                android:label="@string/app_name"
+        <!-- we add this activity-alias for shortcut backward compatibility -->
+        <!-- Note: The alias must put after the target activity -->
+        <activity-alias android:name="com.cooliris.media.Gallery"
+                android:targetActivity="com.android.gallery3d.app.Gallery"
                 android:configChanges="keyboardHidden|orientation|screenSize"
-                android:theme="@style/Theme.Photos.Fullscreen"
-                android:parentActivityName="com.android.photos.GalleryActivity">
-        </activity>
+                android:label="@string/app_name">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+            </intent-filter>
+        </activity-alias>
 
          <!-- This activity receives USB_DEVICE_ATTACHED intents and allows importing
          media from attached MTP devices, like cameras and camera phones -->