Skip to content

Commit 121c210

Browse files
author
Alex Kershaw
committed
Rename InstallUpdateCallback
Test: app now builds Change-Id: Iaa26aab0ce06cec4030b4ffe9dc941c07fbcbb9c
1 parent e49a0d2 commit 121c210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/PolicyManagementFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import android.app.Fragment;
3434
import android.app.FragmentManager;
3535
import android.app.admin.DevicePolicyManager;
36-
import android.app.admin.DevicePolicyManager.InstallUpdateCallback;
36+
import android.app.admin.DevicePolicyManager.InstallSystemUpdateCallback;
3737
import android.app.admin.SystemUpdateInfo;
3838
import android.content.ComponentName;
3939
import android.content.ContentResolver;
@@ -1095,7 +1095,7 @@ private void installUpdate() {
10951095
mAdminComponentName,
10961096
uri,
10971097
new MainThreadExecutor(),
1098-
new InstallUpdateCallback() {
1098+
new InstallSystemUpdateCallback() {
10991099
@Override
11001100
public void onInstallUpdateError(int errorCode, String errorMessage) {
11011101
showToast("Error code: " + errorCode);

0 commit comments

Comments
 (0)