OSDN Git Service

Migrate PaymentSettings to DashboardFragment
authorchiujason <chiujason@android.com>
Thu, 12 Apr 2018 07:52:00 +0000 (15:52 +0800)
committerFan Zhang <zhfan@google.com>
Tue, 1 May 2018 00:24:58 +0000 (17:24 -0700)
commitff244c0e403aabb4fa2b5388bdced924aa770c34
treee939e06636613d9b77b35af2b2742fb55682bea5
parent8efbe6e255190ba9e673dd64a574d6a3e01815cc
Migrate PaymentSettings to DashboardFragment

- Move preference related logic to controllers.
- Add some test cases for controllers.

Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.nfc
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
      atest SettingsGatewayTest UniquePreferenceTest
Change-Id: I061a194c170f63fab51974f26c24be43d67d6f6f
14 files changed:
res/xml/nfc_payment_settings.xml
src/com/android/settings/nfc/BaseNfcPreferenceController.java
src/com/android/settings/nfc/NfcForegroundPreference.java [deleted file]
src/com/android/settings/nfc/NfcForegroundPreferenceController.java [new file with mode: 0644]
src/com/android/settings/nfc/NfcPaymentPreference.java
src/com/android/settings/nfc/NfcPaymentPreferenceController.java [new file with mode: 0644]
src/com/android/settings/nfc/PaymentBackend.java
src/com/android/settings/nfc/PaymentSettings.java
tests/robotests/src/com/android/settings/nfc/AndroidBeamPreferenceControllerTest.java
tests/robotests/src/com/android/settings/nfc/NfcForegroundPreferenceControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/nfc/NfcForegroundPreferenceTest.java [deleted file]
tests/robotests/src/com/android/settings/nfc/NfcPaymentPreferenceControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/nfc/NfcPreferenceControllerTest.java
tests/robotests/src/com/android/settings/nfc/PaymentSettingsTest.java