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

Commit 05987a97 authored by Joey Rizzoli's avatar Joey Rizzoli Committed by Michael W
Browse files

Recorder: don't allow multiple instances of the app



Notifications could launch several instances of the app when clicked.
While this could have been fixed in other ways, we want to be 100%
sure the app doesn't have 2 open instances to prevent race conditions
when starting / pausing the record

Change-Id: I712b0ae711b11ee55c980d60cb730b2ace56fade
Signed-off-by: default avatarJoey Rizzoli <joey@lineageos.org>
parent d7ec1f66
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@
        <activity
            android:name=".RecorderActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">
            android:theme="@style/AppTheme.NoActionBar"
            android:launchMode="singleInstance">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.PHONE_STATE" />