android-test icon indicating copy to clipboard operation
android-test copied to clipboard

Replace PendingIntent.FLAG_UPDATE_CURRENT with PendingIntent.FLAG_CANCEL_CURRENT in InstrumentationActivityInvoker.

Open copybara-service[bot] opened this issue 6 months ago • 0 comments

Replace PendingIntent.FLAG_UPDATE_CURRENT with PendingIntent.FLAG_CANCEL_CURRENT in InstrumentationActivityInvoker.

FLAG_CANCEL_CURRENT solves the issue where the system caches the extras from the previous intent for the PendingIntent and thus the extras passed to the PendingIntent for the new Intent would be ignored when the action between previous intent and new intent are same.

copybara-service[bot] avatar Jul 30 '25 21:07 copybara-service[bot]