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

Commit 9e136b88 authored by Svet Ganov's avatar Svet Ganov
Browse files

Return a result from Fragment#shouldShowRequestPermissionRationale

bug:22523342

Change-Id: Ibacedec952316db705c57204fa448dbcada1c3e6
parent 46d1864c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1249,7 +1249,8 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
     */
    public boolean shouldShowRequestPermissionRationale(@NonNull String permission) {
        if (mHost != null) {
            mHost.getContext().getPackageManager().shouldShowRequestPermissionRationale(permission);
            return mHost.getContext().getPackageManager()
                    .shouldShowRequestPermissionRationale(permission);
        }
        return false;
    }