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

Commit 5ca575ae authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Make ExtServices handle instant apps."

parents d77b5783 8a6765d9
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -27,7 +27,9 @@ import android.app.Notification;
import android.app.NotificationChannel;
import android.app.Person;
import android.app.RemoteInput;
import android.content.pm.ApplicationInfo;
import android.content.pm.IPackageManager;
import android.content.pm.PackageManager;
import android.media.AudioAttributes;
import android.media.AudioSystem;
import android.os.Build;
@@ -67,8 +69,12 @@ public class NotificationEntry {

    private boolean isPreChannelsNotification() {
        try {
            mTargetSdkVersion = mPackageManager.getApplicationInfo(
                    mSbn.getPackageName(), 0, mSbn.getUserId()).targetSdkVersion;
            ApplicationInfo info = mPackageManager.getApplicationInfo(
                    mSbn.getPackageName(), PackageManager.MATCH_ALL,
                    mSbn.getUserId());
            if (info != null) {
                mTargetSdkVersion = info.targetSdkVersion;
            }
        } catch (RemoteException e) {
            Log.w(TAG, "Couldn't look up " + mSbn.getPackageName());
        }