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

Commit deb3099a authored by Jonathan Scott's avatar Jonathan Scott Committed by Automerger Merge Worker
Browse files

Merge "Fix parent check for isDeviceFinanced." into udc-dev am: be630d36 am:...

Merge "Fix parent check for isDeviceFinanced." into udc-dev am: be630d36 am: 8353e89f am: 8309b0a5 am: 3db875df

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22930599



Change-Id: I7a6f3a3da2cca4a818ac2b7150e6a23246f2b58d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0e73c922 3db875df
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());