Skip to content

Commit

Permalink
Merge pull request #1411 from EmmanuelMess/fix-colorpickercrash
Browse files Browse the repository at this point in the history
 Fixed missing padding constant for API < 22 in ColorPickerDialog's xml
  • Loading branch information
EmmanuelMess committed Aug 23, 2018
1 parent 4a47689 commit 4606d36
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
21 changes: 21 additions & 0 deletions app/src/main/res/layout-v22/dialog_colorpicker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingEnd="?android:dialogPreferredPadding"
android:paddingStart="?android:dialogPreferredPadding">

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

</LinearLayout>
</ScrollView>
</LinearLayout>
10 changes: 5 additions & 5 deletions app/src/main/res/layout/dialog_colorpicker.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:paddingStart="?android:attr/dialogPreferredPadding">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingLeft="@dimen/dialogPreferredPadding"
android:paddingRight="@dimen/dialogPreferredPadding">

<ScrollView
android:layout_width="match_parent"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,5 +505,7 @@
<string name="items">Éléments</string>
<string name="byte_singular">octet</string>
<string name="bytes">Octets</string>
<string name="preselectedconfigs_title">Couleurs préconfigurées</string>
<string name="selectcolorconfig">Configurer les couleurs</string>
<!-- end of plurals -->
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@
<dimen name="md_content_textsize">16sp</dimen>
<dimen name="md_content_padding_top">8dp</dimen>

<dimen name="dialogPreferredPadding">24dp</dimen>

</resources>

0 comments on commit 4606d36

Please sign in to comment.