Fix issue #2420412: API review: DeviceAdmin API changes

This commit is contained in:
Dianne Hackborn
2010-02-16 20:40:42 -08:00
parent c4764d2483
commit 5435511ee9
2 changed files with 8 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ import org.xmlpull.v1.XmlPullParserException;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DeviceAdmin;
import android.app.DeviceAdminReceiver;
import android.app.DeviceAdminInfo;
import android.app.DevicePolicyManager;
import android.app.Dialog;
@@ -85,7 +85,7 @@ public class DeviceAdminSettings extends ListActivity {
mAvailableAdmins.clear();
List<ResolveInfo> avail = getPackageManager().queryBroadcastReceivers(
new Intent(DeviceAdmin.ACTION_DEVICE_ADMIN_ENABLED),
new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED),
PackageManager.GET_META_DATA);
int count = avail == null ? 0 : avail.size();
for (int i=0; i<count; i++) {