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

Commit dac6de79 authored by Jonathan Scott's avatar Jonathan Scott
Browse files

Fix parent check for isDeviceFinanced.

Test: Manual
Bug: 275503326
Change-Id: I3073e30361585a3346b03bdd2d4bfb2b459b0272
parent 4c6ec0db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8716,6 +8716,7 @@ public class DevicePolicyManager {
     */
    @RequiresPermission(value = SET_TIME, conditional = true)
    public void setAutoTimeEnabled(@Nullable ComponentName admin, boolean enabled) {
        throwIfParentInstance("setAutoTimeEnabled");
        if (mService != null) {
            try {
                mService.setAutoTimeEnabled(admin, mContext.getPackageName(), enabled);
@@ -16938,6 +16939,7 @@ public class DevicePolicyManager {
     * android.app.role.RoleManager.ROLE_SYSTEM_SUPERVISION.
     */
    public boolean isDeviceFinanced() {
        throwIfParentInstance("isDeviceFinanced");
        if (mService != null) {
            try {
                return mService.isDeviceFinanced(mContext.getPackageName());