Skip to content

Commit

Permalink
Merge branch 'release/v9.13.0.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipsgoncalves committed Feb 4, 2020
2 parents b83a6fa + 800bb09 commit 249b420
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ class AutoUpdateDialogFragment : BaseDialogView(), AutoUpdateDialogView {
override fun dismissDialog() {
dismiss()
}

override fun shouldUseDefaultDialogStyle(): Boolean {
return false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class BaseDialogFragment extends RxDialogFragment {
((MainActivity) getContext()).getActivityComponent()
.inject(this);

if (this.getActivity() != null) {
if (this.getActivity() != null && shouldUseDefaultDialogStyle()) {
setStyle(DialogFragment.STYLE_NO_TITLE,
themeManager.getAttributeForTheme(getDialogStyle()).resourceId);
}
Expand All @@ -48,6 +48,10 @@ public class BaseDialogFragment extends RxDialogFragment {
return R.attr.dialogsTheme;
}

public boolean shouldUseDefaultDialogStyle() {
return true;
}

public FragmentComponent getFragmentComponent(Bundle savedInstanceState) {
if (fragmentComponent == null) {
AptoideApplication aptoideApplication =
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</style>

<style name="AppBaseThemeDark.DialogTheme" parent="Aptoide.DialogTheme">
<item name="android:windowBackground">@color/grey_900</item>
<item name="android:background">@color/grey_900</item>
</style>

<style name="AppBaseThemeDark.DialogTheme.Rounded">
Expand Down

0 comments on commit 249b420

Please sign in to comment.