History log of /frameworks/base/services/core/java/com/android/server/emergency/EmergencyAffordanceService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bd740cd56ac93e0e9fe6881cee927f7dbdd06620 11-Oct-2016 Selim Cinek <cinek@google.com> Fixed an issue where the emergency affordance would show

If a device isn't voice capable, it shouldn't show the emergency
option.

Test: use tablet which isn't voice capable, insert indian sim and
make sure no emergency option is displayed in global actions.
Bug: 31953703
Change-Id: I351e87320f3ffec76d1c1fc5aac78e5c48c0ac54
/frameworks/base/services/core/java/com/android/server/emergency/EmergencyAffordanceService.java
705442fa7dcbf1bf92595fdaca6cc888810931d8 14-Sep-2016 Selim Cinek <cinek@google.com> Added Emergency affordance feature

Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Fixes: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
/frameworks/base/services/core/java/com/android/server/emergency/EmergencyAffordanceService.java