OSDN Git Service

Change carrier name shown No Service to ECO
authorFabian Kozynski <kozynski@google.com>
Thu, 30 May 2019 19:36:50 +0000 (15:36 -0400)
committerFabian Kozynski <kozynski@google.com>
Fri, 31 May 2019 13:15:50 +0000 (09:15 -0400)
commitb023773a18c37a8a50a6d18e552b1e440dff13e7
treeb2ad0c966ddb0ba6acf139130bb6e81ad8107999
parentaa21a4a71c558a4cbc891030dedd9457b9093e1a
Change carrier name shown No Service to ECO

In the case where at least one SIM supports EC (either it has service or
it supports them), we replace "No service" carrier name into "Emergency calls
only". This does not replace the string if the sub is already mark as
ECO.

Test: manual
Test: atest KeyguardUpdateMonitorTest
Test: atest CarrierTextControllerTest
Fixes: 130857483
Fixes: 133201131
Fixes: 132291669
Change-Id: Ia0ba2076c9750a8bb081994291753dbea68a2270
packages/SystemUI/src/com/android/keyguard/CarrierTextController.java
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/tests/src/com/android/keyguard/CarrierTextControllerTest.java
packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java