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

Commit 3da1b871 authored by Tony Mantler's avatar Tony Mantler
Browse files

Remove @SuppressLint("NewApi")

I have no strong feelings one way or the other.

Change-Id: I6f945a1393b62965486be072912b1cfac2ea053b
parent cf4634e5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

package com.android.packageinstaller;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ApplicationInfo;
@@ -28,10 +27,10 @@ import android.content.pm.PackageParser.PackageParserException;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.UserHandle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.os.UserHandle;

import java.io.File;
import java.util.List;
@@ -40,7 +39,6 @@ import java.util.List;
 * This is a utility class for defining some utility methods and constants
 * used in the package installer application.
 */
@SuppressLint("NewApi")
public class PackageUtil {
    public static final String PREFIX="com.android.packageinstaller.";
    public static final String INTENT_ATTR_INSTALL_STATUS = PREFIX+"installStatus";
+0 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
*/
package com.android.packageinstaller;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.admin.IDevicePolicyManager;
import android.content.Context;
@@ -55,7 +54,6 @@ import java.util.List;
 * by an intent with the intent's class name explicitly set to UninstallAppProgress and expects
 * the application object of the application to uninstall.
 */
@SuppressLint("NewApi")
public class UninstallAppProgress extends Activity {
    private static final String TAG = "UninstallAppProgress";

+0 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
*/
package com.android.packageinstaller;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.DialogFragment;
import android.app.Fragment;
@@ -45,7 +44,6 @@ import com.android.packageinstaller.handheld.UninstallAlertDialogFragment;
 * Intent.ACTION_UNINSTALL_PKG_COMMAND and attribute
 * com.android.packageinstaller.PackageName set to the application package name
 */
@SuppressLint("NewApi")
public class UninstallerActivity extends Activity {
    private static final String TAG = "UninstallerActivity";

+0 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.packageinstaller.handheld;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
@@ -27,7 +26,6 @@ import android.os.Bundle;
import com.android.packageinstaller.R;
import com.android.packageinstaller.UninstallerActivity;

@SuppressLint("NewApi")
public class AppNotFoundDialogFragment extends DialogFragment {

    @Override
+0 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.packageinstaller.handheld;

import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
@@ -30,7 +29,6 @@ import android.os.UserManager;
import com.android.packageinstaller.R;
import com.android.packageinstaller.UninstallerActivity;

@SuppressLint("NewApi")
public class UninstallAlertDialogFragment extends DialogFragment implements
        DialogInterface.OnClickListener {

Loading