Android 12 设置壁纸页面改为支持横竖屏切换

diff --git a/packages/apps/ThemePicker/AndroidManifest.xml b/packages/apps/ThemePicker/AndroidManifest.xml
index ee332c7..9d03681 100755
--- a/packages/apps/ThemePicker/AndroidManifest.xml
+++ b/packages/apps/ThemePicker/AndroidManifest.xml
@@ -59,7 +59,7 @@
             android:label="@string/app_name"
             android:resizeableActivity="false"
             android:theme="@style/CustomizationTheme.NoActionBar"
-            android:screenOrientation="portrait"
+            android:screenOrientation="unspecified"
             android:exported="false"/>

         <!-- UNISOC: Add for Bug 1693259, add the portrait for wallpaper. -->
@@ -67,7 +67,7 @@
             android:name="com.android.customization.picker.CustomizationPickerActivity"
             android:targetActivity="com.android.wallpaper.picker.CustomizationPickerActivity"
             android:label="@string/app_name"
-            android:screenOrientation="portrait"
+            android:screenOrientation="unspecified"
             android:exported="true">
              <intent-filter>
                  <action android:name="android.intent.action.SET_WALLPAPER"/>
diff --git a/packages/apps/WallpaperPicker2/AndroidManifest.xml b/packages/apps/WallpaperPicker2/AndroidManifest.xml
index 1aa905b..4fe740c 100755
--- a/packages/apps/WallpaperPicker2/AndroidManifest.xml
+++ b/packages/apps/WallpaperPicker2/AndroidManifest.xml
@@ -48,7 +48,7 @@
       </intent>
   </queries>

-<!-- UNISOC: Add for Bug 1693259, add the portrait for wallpaper. -->
+<!-- UNISOC: Add for Bug 1693259, add the unspecified for wallpaper. -->
   <application
       tools:replace="android:icon,android:name,android:appComponentFactory"
       android:appComponentFactory="androidx.core.app.CoreComponentFactory"
@@ -67,7 +67,7 @@
          android:label="@string/app_name"
          android:theme="@style/WallpaperTheme.NoBackground"
          android:resizeableActivity="false"
-         android:screenOrientation="portrait"
+         android:screenOrientation="unspecified"
          android:exported="false">
     </activity>

@@ -75,7 +75,7 @@
         android:label="@string/app_name"
         android:resizeableActivity="false"
         android:theme="@style/WallpaperTheme.NoBackground"
-        android:screenOrientation="portrait"
+        android:screenOrientation="unspecified"
         android:exported="true">
         <intent-filter>
             <action android:name="android.intent.action.SET_WALLPAPER"/>
@@ -101,7 +101,7 @@
         android:name="com.android.wallpaper.picker.CategoryPickerActivity"
         android:targetActivity="com.android.wallpaper.picker.CustomizationPickerActivity"
         android:label="@string/app_name"
-        android:screenOrientation="portrait"
+        android:screenOrientation="unspecified"
         android:exported="true">
       <intent-filter>
         <action android:name="android.intent.action.MAIN"/>
@@ -112,20 +112,20 @@
         android:label="@string/app_name"
         android:theme="@style/WallpaperTheme"
         android:resizeableActivity="false"
-        android:screenOrientation="portrait"
+        android:screenOrientation="unspecified"
         android:parentActivityName="com.android.wallpaper.picker.TopLevelPickerActivity">
     </activity>

     <activity android:name="com.android.wallpaper.picker.PreviewActivity"
          android:resizeableActivity="false"
-         android:screenOrientation="portrait"
+         android:screenOrientation="unspecified"
          android:theme="@style/WallpaperTheme.Preview">
     </activity>

     <activity android:name="com.android.wallpaper.picker.StandalonePreviewActivity"
          android:resizeableActivity="false"
          android:theme="@style/WallpaperTheme.Preview"
-         android:screenOrientation="portrait"
+         android:screenOrientation="unspecified"
          android:exported="true">
       <intent-filter>
         <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER"/>
@@ -136,7 +136,7 @@

     <activity android:name="com.android.wallpaper.picker.ViewOnlyPreviewActivity"
          android:resizeableActivity="false"
-         android:screenOrientation="portrait"
+         android:screenOrientation="unspecified"
          android:theme="@style/WallpaperTheme.Preview">
     </activity>
   </application>

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值