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

Commit 287ef84e authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak Committed by android-build-merger
Browse files

Merge "Log package name when showing targetSdkVersion warning" into pi-dev am: 9d4d6e9d

am: b3c294c8

Change-Id: I046df7390751ca9dfa0404f903138eba42b3c953
parents d1b3429c b3c294c8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package com.android.server.am;

import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;

import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
@@ -23,6 +26,7 @@ import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.SystemPropertiesProto;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;
import android.widget.CheckBox;
@@ -31,6 +35,8 @@ import com.android.internal.R;
import com.android.server.utils.AppInstallerUtil;

public class DeprecatedTargetSdkVersionDialog {
    private static final String TAG = TAG_WITH_CLASS_NAME ? "DeprecatedTargetSdkVersionDialog" : TAG_AM;

    private final AlertDialog mDialog;
    private final String mPackageName;

@@ -74,6 +80,7 @@ public class DeprecatedTargetSdkVersionDialog {
    }

    public void show() {
        Log.w(TAG, "Showing SDK deprecation warning for package " + mPackageName);
        mDialog.show();
    }