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

Commit df720c64 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6664824 from 9891972f to mainline-release

Change-Id: I5183672d5ce9313f14b84b3eaffa6b67ff9e830c
parents 4433450b 9891972f
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -72,7 +72,7 @@ public class SearchFragment extends Fragment{


    public static void dismissFragment(FragmentManager fm) {
    public static void dismissFragment(FragmentManager fm) {
        SearchFragment fragment = get(fm);
        SearchFragment fragment = get(fm);
        if (fragment != null) {
        if (fragment != null && fragment.getActivity() != null) {
            fragment.dismiss();
            fragment.dismiss();
        }
        }
    }
    }
@@ -154,6 +154,11 @@ public class SearchFragment extends Fragment{
    }
    }


    private void dismiss() {
    private void dismiss() {
        if (getActivity() == null) {
            // Fragment has already been detached from activity.
            return;
        }

        updateDirectoryVisibility(View.VISIBLE);
        updateDirectoryVisibility(View.VISIBLE);


        FragmentTransaction ft = getParentFragmentManager().beginTransaction();
        FragmentTransaction ft = getParentFragmentManager().beginTransaction();