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

Commit a9ec5bcd authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #23115154: APR: NPE in PackageInstaller

Change-Id: If89e603508e02cad781ee455b2149af1024bd443
parent 57c56fb3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -72,6 +72,10 @@ public abstract class PermissionsFrameFragment extends PreferenceFragment {
    private void setLoading(boolean loading, boolean animate, boolean force) {
        if (mIsLoading != loading || force) {
            mIsLoading = loading;
            if (getView() == null) {
                // If there is no created view, there is no reason to animate.
                animate = false;
            }
            if (mPrefsView != null) {
                setViewShown(mPrefsView, !loading, animate);
            }