mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 02:48:10 +00:00
Consolidate AnimatedDialog themes to single DayNight theme.
This commit is contained in:

committed by
Cody Henthorne

parent
cd58c09be3
commit
f5b46f7356
@@ -70,11 +70,7 @@ public class CustomNotificationsDialogFragment extends DialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
if (ThemeUtil.isDarkTheme(requireActivity())) {
|
setStyle(STYLE_NO_FRAME, R.style.Signal_DayNight_Dialog_Animated);
|
||||||
setStyle(STYLE_NO_FRAME, R.style.TextSecure_DarkTheme_AnimatedDialog);
|
|
||||||
} else {
|
|
||||||
setStyle(STYLE_NO_FRAME, R.style.TextSecure_LightTheme_AnimatedDialog);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -43,9 +43,7 @@ public final class ShareableGroupLinkDialogFragment extends DialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setStyle(STYLE_NO_FRAME, R.style.Signal_DayNight_Dialog_Animated);
|
||||||
setStyle(STYLE_NO_FRAME, ThemeUtil.isDarkTheme(requireActivity()) ? R.style.TextSecure_DarkTheme_AnimatedDialog
|
|
||||||
: R.style.TextSecure_LightTheme_AnimatedDialog);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -300,11 +300,7 @@
|
|||||||
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Signal.BottomSheet.Rounded</item>
|
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Signal.BottomSheet.Rounded</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TextSecure.DarkTheme.AnimatedDialog">
|
<style name="Signal.DayNight.Dialog.Animated" parent="Signal.DayNight">
|
||||||
<item name="android:windowAnimationStyle">@style/FadeScale</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="TextSecure.LightTheme.AnimatedDialog">
|
|
||||||
<item name="android:windowAnimationStyle">@style/FadeScale</item>
|
<item name="android:windowAnimationStyle">@style/FadeScale</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user