Skip to content

Commit

Permalink
Set targetApi for flag
Browse files Browse the repository at this point in the history
  • Loading branch information
li-advait committed Nov 12, 2024
1 parent da8f3f5 commit fff71ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion shaky-sample/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
Expand Down Expand Up @@ -45,4 +45,8 @@
<item name="shakyPopupContentColor">@android:color/white</item>
</style>

<style name="OptOutEdgeToEdgeEnforcement">
<item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item>
</style>

</resources>
5 changes: 4 additions & 1 deletion shaky/src/main/res/values/shaky_styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">

<style name="ShakyBaseAlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:colorBackground">?attr/shakyBackgroundColor</item>
Expand Down Expand Up @@ -70,6 +70,9 @@
<item name="shakyAlertDialogTheme">@style/ShakyBaseAlertDialogTheme</item>
<item name="alertDialogTheme">?attr/shakyAlertDialogTheme</item>
<item name="materialAlertDialogTheme">?attr/shakyAlertDialogTheme</item>

<!-- Opt out of Edge to Edge enforcement required from Android 15 -->
<item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item>
</style>

<style name="ShakyBasePopupTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
Expand Down

0 comments on commit fff71ad

Please sign in to comment.