Loading vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ public class LicenseServiceNotificationRunnable implements Runnable { ignoreIntent.putExtra(INTENT_KEY_IGNORE_PACKAGE_NAME, callerPackageName); ignoreIntent.putExtra(INTENT_KEY_NOTIFICATION_ID, callerUid); PendingIntent ignorePendingIntent = PendingIntent.getBroadcast( context, callerUid * 2 + 1, ignoreIntent, PendingIntent.FLAG_IMMUTABLE context, callerUid * 2 + 1, ignoreIntent, PendingIntent.FLAG_MUTABLE ); Notification notification = new NotificationCompat.Builder(context, CHANNEL_ID) Loading vending-app/src/main/java/com/android/vending/licensing/LicensingService.java +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ public class LicensingService extends Service { PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); notificationRunnable.callerUid = packageInfo.applicationInfo.uid; notificationRunnable.callerAppName = packageManager.getApplicationLabel(packageInfo.applicationInfo); notificationRunnable.callerPackageName = packageName; } catch (PackageManager.NameNotFoundException e) { Log.e(TAG, "ignored license request, but package name " + packageName + " was not known!"); notificationRunnable.callerAppName = packageName; Loading Loading
vending-app/src/main/java/com/android/vending/licensing/LicenseServiceNotificationRunnable.java +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ public class LicenseServiceNotificationRunnable implements Runnable { ignoreIntent.putExtra(INTENT_KEY_IGNORE_PACKAGE_NAME, callerPackageName); ignoreIntent.putExtra(INTENT_KEY_NOTIFICATION_ID, callerUid); PendingIntent ignorePendingIntent = PendingIntent.getBroadcast( context, callerUid * 2 + 1, ignoreIntent, PendingIntent.FLAG_IMMUTABLE context, callerUid * 2 + 1, ignoreIntent, PendingIntent.FLAG_MUTABLE ); Notification notification = new NotificationCompat.Builder(context, CHANNEL_ID) Loading
vending-app/src/main/java/com/android/vending/licensing/LicensingService.java +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ public class LicensingService extends Service { PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); notificationRunnable.callerUid = packageInfo.applicationInfo.uid; notificationRunnable.callerAppName = packageManager.getApplicationLabel(packageInfo.applicationInfo); notificationRunnable.callerPackageName = packageName; } catch (PackageManager.NameNotFoundException e) { Log.e(TAG, "ignored license request, but package name " + packageName + " was not known!"); notificationRunnable.callerAppName = packageName; Loading