Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a41b1a33 authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

Recorder: Fix DialogActivity's transitions

* Without this change, the dialog appears an disappears from/to the bottom
* With this, it fades in and out from the center of the screen

Change-Id: Ibfb3d85c07456d5f29b4db94fed96ffc98c3a067
parent 1aed661a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -95,6 +95,12 @@ public class DialogActivity extends AppCompatActivity {
        finish();
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(0, android.R.anim.fade_out);
    }

    private void setupLocationSwitch(@NonNull SwitchCompat locationSwitch,
                                     boolean isRecording) {
        final boolean tagWithLocation;
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="AppTheme.Main">