Skip to content

Commit 6c32707

Browse files
Fix issue caused by 1f1b06f
1 parent 831355c commit 6c32707

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailImageDialogFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public void execute() {
153153

154154
int style = DialogFragment.STYLE_NO_TITLE;
155155
int theme = ThemeChooser.isDarkTheme(getActivity())
156-
? R.style.Theme_Material_Dialog_Floating
157-
: R.style.Theme_Material_Light_Dialog_Floating;
156+
? R.style.FloatingDialog
157+
: R.style.FloatingDialogLight;
158158
setStyle(style, theme);
159159
}
160160

News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListDialogFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public void execute() {
9494

9595
int style = DialogFragment.STYLE_NO_TITLE;
9696
int theme = ThemeChooser.isDarkTheme(getActivity())
97-
? R.style.Theme_Material_Dialog_Floating
98-
: R.style.Theme_Material_Light_Dialog_Floating;
97+
? R.style.FloatingDialog
98+
: R.style.FloatingDialogLight;
9999
setStyle(style, theme);
100100
}
101101

News-Android-App/src/main/res/values/styles.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
<item name="android:background">@color/news_detail_background_color_light_theme</item>
6464
</style>
6565

66-
<style name="Theme.Material.Dialog.Floating" parent="@android:style/Theme.Material.Dialog" >
66+
<style name="FloatingDialog" parent="AppTheme" >
6767
<item name="android:windowIsFloating">true</item>
6868
<item name="android:windowCloseOnTouchOutside">true</item>
6969
</style>
70-
<style name="Theme.Material.Light.Dialog.Floating" parent="@android:style/Theme.Material.Light.Dialog" >
70+
<style name="FloatingDialogLight" parent="AppThemeLight" >
7171
<item name="android:windowIsFloating">true</item>
7272
<item name="android:windowCloseOnTouchOutside">true</item>
7373
</style>

0 commit comments

Comments
 (0)