Consolidate AnimatedDialog themes to single DayNight theme.
This commit is contained in:
parent
cd58c09be3
commit
f5b46f7356
3 changed files with 3 additions and 13 deletions
|
@ -70,11 +70,7 @@ public class CustomNotificationsDialogFragment extends DialogFragment {
|
|||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
if (ThemeUtil.isDarkTheme(requireActivity())) {
|
||||
setStyle(STYLE_NO_FRAME, R.style.TextSecure_DarkTheme_AnimatedDialog);
|
||||
} else {
|
||||
setStyle(STYLE_NO_FRAME, R.style.TextSecure_LightTheme_AnimatedDialog);
|
||||
}
|
||||
setStyle(STYLE_NO_FRAME, R.style.Signal_DayNight_Dialog_Animated);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -43,9 +43,7 @@ public final class ShareableGroupLinkDialogFragment extends DialogFragment {
|
|||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setStyle(STYLE_NO_FRAME, ThemeUtil.isDarkTheme(requireActivity()) ? R.style.TextSecure_DarkTheme_AnimatedDialog
|
||||
: R.style.TextSecure_LightTheme_AnimatedDialog);
|
||||
setStyle(STYLE_NO_FRAME, R.style.Signal_DayNight_Dialog_Animated);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -300,11 +300,7 @@
|
|||
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Signal.BottomSheet.Rounded</item>
|
||||
</style>
|
||||
|
||||
<style name="TextSecure.DarkTheme.AnimatedDialog">
|
||||
<item name="android:windowAnimationStyle">@style/FadeScale</item>
|
||||
</style>
|
||||
|
||||
<style name="TextSecure.LightTheme.AnimatedDialog">
|
||||
<style name="Signal.DayNight.Dialog.Animated" parent="Signal.DayNight">
|
||||
<item name="android:windowAnimationStyle">@style/FadeScale</item>
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue