OSDN Git Service

Refactor CarrierTextController
authorFabian Kozynski <kozynski@google.com>
Tue, 5 Feb 2019 14:36:59 +0000 (09:36 -0500)
committerFabian Kozynski <kozynski@google.com>
Fri, 1 Mar 2019 15:06:10 +0000 (10:06 -0500)
commitb176f42011febf1dd11778c6ca6bddbed3607f46
treec594ed9fce7ba435cdfe014f383a1cdcbbc3bc0a
parenta9424139e2e11c21cec1a770a783c3a20c6453ee
Refactor CarrierTextController

The list of carriers is now created on the go, so it will always have
the same number of items as there are subscriptions.

Fixes code that reused same slotID into carrierName order.

Test: atest
Test: manual using DSDS

Change-Id: I2533738429b8f0f94c84110641e8c162d19f094a
packages/SystemUI/src/com/android/keyguard/CarrierTextController.java
packages/SystemUI/src/com/android/systemui/qs/QSFooterImpl.java
packages/SystemUI/tests/src/com/android/keyguard/CarrierTextControllerTest.java [new file with mode: 0644]