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

Commit 8baffd29 authored by Matt Casey's avatar Matt Casey Committed by mse1969
Browse files

Start editor as the launching user instead of personal

Bug: 407991863
Test: atest ChooserActivityTest
Flag: EXEMPT what year is it
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e7373294dc606ac65a4c9f69d848946424f7c9ee)
Merged-In: I57395b53585cc167032494f36b4086910bcf45fa
Change-Id: I57395b53585cc167032494f36b4086910bcf45fa
parent 76e9b85f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1316,9 +1316,9 @@ public class ChooserActivity extends ResolverActivity implements
                            -1,
                            false);
                    View firstImgView = getFirstVisibleImgPreviewView();
                    // Action bar is user-independent, always start as primary
                    // Action bar is user-independent, always start as the launching user
                    if (firstImgView == null) {
                        safelyStartActivityAsUser(ti, getPersonalProfileUserHandle());
                        safelyStartActivityAsUser(ti, UserHandle.of(UserHandle.myUserId()));
                        finish();
                    } else {
                        ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(