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

Commit d4bfa339 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Finish current group and duplicates activities after creating new groups

Bug 30047708
Bug 30261767

Change-Id: Ic5933f861d2003fc9d979ce45db9d8a2363addf8
parent 3cb77bbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ public abstract class ContactsDrawerActivity extends AppCompatContactsActivity i
            if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Received group URI " + groupUri);
            Toast.makeText(this, R.string.groupCreatedToast, Toast.LENGTH_SHORT).show();
            startActivity(GroupUtil.createViewGroupIntent(this, groupUri, /* title */ null));
            if (this instanceof GroupMembersActivity) {
            if (shouldFinish()) {
                // If we created a group while viewing the members of an existing group (i.e.
                // while on GroupMembersActivity), finish the current GroupMembersActivity so that
                // hitting back from the new GroupMembersActivity that was just stared will open