Skip to content

Commit

Permalink
Fix issue caused by 1f1b06f
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Development committed Jan 8, 2016
1 parent 831355c commit 6c32707
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public void execute() {

int style = DialogFragment.STYLE_NO_TITLE;
int theme = ThemeChooser.isDarkTheme(getActivity())
? R.style.Theme_Material_Dialog_Floating
: R.style.Theme_Material_Light_Dialog_Floating;
? R.style.FloatingDialog
: R.style.FloatingDialogLight;
setStyle(style, theme);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public void execute() {

int style = DialogFragment.STYLE_NO_TITLE;
int theme = ThemeChooser.isDarkTheme(getActivity())
? R.style.Theme_Material_Dialog_Floating
: R.style.Theme_Material_Light_Dialog_Floating;
? R.style.FloatingDialog
: R.style.FloatingDialogLight;
setStyle(style, theme);
}

Expand Down
4 changes: 2 additions & 2 deletions News-Android-App/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
<item name="android:background">@color/news_detail_background_color_light_theme</item>
</style>

<style name="Theme.Material.Dialog.Floating" parent="@android:style/Theme.Material.Dialog" >
<style name="FloatingDialog" parent="AppTheme" >
<item name="android:windowIsFloating">true</item>
<item name="android:windowCloseOnTouchOutside">true</item>
</style>
<style name="Theme.Material.Light.Dialog.Floating" parent="@android:style/Theme.Material.Light.Dialog" >
<style name="FloatingDialogLight" parent="AppThemeLight" >
<item name="android:windowIsFloating">true</item>
<item name="android:windowCloseOnTouchOutside">true</item>
</style>
Expand Down

0 comments on commit 6c32707

Please sign in to comment.