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

Commit edb428a2 authored by Michael W's avatar Michael W
Browse files

Recorder: Remove transition override

* Causes a weird transition on light theme
* Default behavior doesn't look bad at all

Change-Id: I9778f44536fd50c50609d63aeafb66c245e7404f
parent 0d41c480
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -5,8 +5,6 @@

package org.lineageos.recorder

import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
@@ -65,18 +63,6 @@ class DialogActivity : AppCompatActivity() {
        finish()
    }

    override fun finish() {
        super.finish()
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
            overrideActivityTransition(
                OVERRIDE_TRANSITION_CLOSE, 0, android.R.anim.fade_out, Color.TRANSPARENT
            )
        } else {
            @Suppress("deprecation")
            overridePendingTransition(0, android.R.anim.fade_out)
        }
    }

    private fun setupLocationSwitch(
        locationSwitch: MaterialSwitch,
        isRecording: Boolean