Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd314dee authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Rearrange PIA themes.

All activities require no action bar and title since only a dialog is
shown. As such, we dont need to specify a theme for each individual
activity. We can include the `NoActionBar` theme's properties into the
application theme.

Test: Manual. Install an APK and observe the UI
Bug: 316810746

Change-Id: I0f420793edfee54c8ac352456f06d610b75458c8
parent 922109ce
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -45,11 +45,9 @@

        <activity android:name=".v2.ui.InstallLaunch"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/Theme.AlertDialogActivity"
            android:exported="false"/>

        <activity android:name=".InstallStart"
                android:theme="@style/Theme.AlertDialogActivity"
                android:exported="true"
                android:excludeFromRecents="true">
            <intent-filter android:priority="1">
@@ -79,14 +77,12 @@
                android:exported="false" />

        <activity android:name=".DeleteStagedFileOnResult"
            android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
            android:exported="false" />

        <activity android:name=".PackageInstallerActivity"
                android:exported="false" />

        <activity android:name=".InstallInstalling"
                android:theme="@style/Theme.AlertDialogActivity.NoAnimation"
                android:exported="false" />

        <receiver android:name=".common.InstallEventReceiver"
@@ -98,16 +94,13 @@
        </receiver>

        <activity android:name=".InstallSuccess"
                android:theme="@style/Theme.AlertDialogActivity.NoAnimation"
                android:exported="false" />

        <activity android:name=".InstallFailed"
                android:theme="@style/Theme.AlertDialogActivity.NoAnimation"
                android:exported="false" />

        <activity android:name=".UninstallerActivity"
                android:configChanges="orientation|keyboardHidden|screenSize"
                android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
                android:excludeFromRecents="true"
                android:noHistory="true"
                android:exported="true">
@@ -121,7 +114,6 @@

        <activity android:name=".v2.ui.UninstallLaunch"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
            android:excludeFromRecents="true"
            android:noHistory="true"
            android:exported="false">
@@ -144,7 +136,6 @@
        </receiver>

        <activity android:name=".UninstallUninstalling"
            android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
            android:excludeFromRecents="true"
            android:exported="false" />

@@ -171,7 +162,6 @@

        <activity android:name=".UnarchiveActivity"
                  android:configChanges="orientation|keyboardHidden|screenSize"
                  android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
                  android:excludeFromRecents="true"
                  android:noHistory="true"
                  android:exported="true">
@@ -183,7 +173,6 @@

        <activity android:name=".UnarchiveErrorActivity"
                  android:configChanges="orientation|keyboardHidden|screenSize"
                  android:theme="@style/Theme.AlertDialogActivity.NoActionBar"
                  android:excludeFromRecents="true"
                  android:noHistory="true"
                  android:exported="true">
+1 −8
Original line number Diff line number Diff line
@@ -17,19 +17,12 @@

<resources>

    <style name="Theme.AlertDialogActivity.NoAnimation"
           parent="@style/Theme.AlertDialogActivity.NoActionBar">
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="Theme.AlertDialogActivity"
        parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
        <item name="alertDialogStyle">@style/AlertDialog</item>
    </style>

    <style name="Theme.AlertDialogActivity.NoActionBar">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

</resources>