OSDN Git Service

Don't launch activities from statusbar if running
authorBeverly <beverlyt@google.com>
Wed, 11 Apr 2018 21:17:24 +0000 (17:17 -0400)
committerBeverly <beverlyt@google.com>
Wed, 11 Apr 2018 21:59:14 +0000 (17:59 -0400)
commit93c66160430ab3ab8c23f91a0901ab16faf93cc5
tree04f076130f472d2530d2751d6211e26f63eb458d
parent992f6120c0bcf2e753ad866a7d5c796e8def310f
Don't launch activities from statusbar if running

Added FLAG_ACTIVITY_SINGLE_TOP when starting activities launched
from the StatusBar.  If the activity is already running
at the top of the history stack, then don't relaunch.

Fixes: 77335366
Test: manual (click "Manage notifications" from notification shade,
then trigger it again - no issues)

Change-Id: I2e9ce2c57544c3066dc4fa0cc9662f0aa85565ab
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java