Skip to content

Commit

Permalink
Merge "Rearrange PIA themes." into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumedh Sen authored and Android (Google) Code Review committed Feb 5, 2024
2 parents d00dead + dd314de commit ca4a84d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
11 changes: 0 additions & 11 deletions packages/PackageInstaller/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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"
Expand All @@ -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">
Expand All @@ -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">
Expand All @@ -144,7 +136,6 @@
</receiver>

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

Expand All @@ -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">
Expand All @@ -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">
Expand Down
9 changes: 1 addition & 8 deletions packages/PackageInstaller/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ca4a84d

Please sign in to comment.