Эх сурвалжийг харах

Lock AppScanActivity in portrait

Suggested in the library's docs, and prevents the activity crashing

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 жил өмнө
parent
commit
f6094ae343

+ 0 - 30
app/src/generic/AndroidManifest.xml

@@ -1,30 +0,0 @@
-<!--
-  ~ Nextcloud Android client application
-  ~
-  ~ @author Álvaro Brey Vilas
-  ~ Copyright (C) 2022 Álvaro Brey Vilas
-  ~ Copyright (C) 2022 Nextcloud GmbH
-  ~
-  ~ This program is free software: you can redistribute it and/or modify
-  ~ it under the terms of the GNU General Public License as published by
-  ~ the Free Software Foundation, either version 3 of the License, or
-  ~ (at your option) any later version.
-  ~
-  ~ This program is distributed in the hope that it will be useful,
-  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
-  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-  ~ GNU General Public License for more details.
-  ~
-  ~ You should have received a copy of the GNU General Public License
-  ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-  -->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools">
-
-    <application>
-        <activity
-            android:name=".ui.activity.AppScanActivity"
-            tools:node="remove" />
-    </application>
-</manifest>

+ 0 - 5
app/src/main/AndroidManifest.xml

@@ -128,11 +128,6 @@
                 android:name="android.app.searchable"
                 android:name="android.app.searchable"
                 android:resource="@xml/users_and_groups_searchable" />
                 android:resource="@xml/users_and_groups_searchable" />
         </activity>
         </activity>
-        <activity
-            android:name=".ui.activity.AppScanActivity"
-            android:screenOrientation="portrait"
-            android:theme="@style/Theme.AppCompat.NoActionBar"
-            tools:ignore="LockedOrientationActivity" />
         <activity
         <activity
             android:name=".ui.activity.ManageAccountsActivity"
             android:name=".ui.activity.ManageAccountsActivity"
             android:exported="false" />
             android:exported="false" />

+ 7 - 2
appscan/src/main/AndroidManifest.xml

@@ -20,10 +20,15 @@
   ~
   ~
   -->
   -->
 
 
-<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools">
 
 
     <application>
     <application>
-        <activity android:name=".AppScanActivity" />
+        <activity
+            android:name=".AppScanActivity"
+            android:screenOrientation="portrait"
+            android:theme="@style/Theme.AppCompat.NoActionBar"
+            tools:ignore="LockedOrientationActivity" />
     </application>
     </application>
 
 
 </manifest>
 </manifest>