Merge "Use setIdentifier instead of dynamic categories" into tm-qpr-dev

This commit is contained in:
John Wu
2022-10-18 20:21:52 +00:00
committed by Android (Google) Code Review

View File

@@ -290,7 +290,7 @@ public class InstantAppNotifier
.setComponent(aiaComponent) .setComponent(aiaComponent)
.setAction(Intent.ACTION_VIEW) .setAction(Intent.ACTION_VIEW)
.addCategory(Intent.CATEGORY_BROWSABLE) .addCategory(Intent.CATEGORY_BROWSABLE)
.addCategory("unique:" + System.currentTimeMillis()) .setIdentifier("unique:" + System.currentTimeMillis())
.putExtra(Intent.EXTRA_PACKAGE_NAME, appInfo.packageName) .putExtra(Intent.EXTRA_PACKAGE_NAME, appInfo.packageName)
.putExtra( .putExtra(
Intent.EXTRA_VERSION_CODE, Intent.EXTRA_VERSION_CODE,