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

Commit f6ee2244 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Restored original behavior of getApplicationRestrictions

JavaDoc for getApplicationRestrictions states that null is a valid return
 value, but it turns out some apps do not expect that. This fix restores
the original behavior of returning an empty bundle.

Bug: 20081431
Change-Id: I30a4aa6aba14307eba59ba0015f80f14107269af
parent 12611bdf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1690,7 +1690,7 @@ public class UserManagerService extends IUserManager.Stub {
        final Bundle restrictions = new Bundle();
        final ArrayList<String> values = new ArrayList<>();
        if (!restrictionsFile.getBaseFile().exists()) {
            return null;
            return restrictions;
        }

        FileInputStream fis = null;