aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2015-02-24 09:59:02 -0800
committerJatin Matani <jatinm@google.com>2015-02-26 11:43:42 -0800
commit8ec328fb2e454c2c9e353b6aec0bc613a1846c88 (patch)
tree69662a0182bc15a7bde97f5860635ee7d227d782 /tests
parent1d5ec6136cf2d2c84453120407957ddb64c7b2b7 (diff)
downloadlatinime-8ec328fb2e454c2c9e353b6aec0bc613a1846c88.tar.gz
latinime-8ec328fb2e454c2c9e353b6aec0bc613a1846c88.tar.xz
latinime-8ec328fb2e454c2c9e353b6aec0bc613a1846c88.zip
Refresh pref settings for cloud sync
- Show the opt-in text - Show the account picker if user presses 'enable sync'. Previously we disabled the sync pref which was confusing. - Remove the debug tags from some prefs; and improve messaging overall General rules; - sync is turned ON : user checks 'enable sync' pref AND accepts the opt-in AND chooses an account - sync is turned OFF: when user signs out Demo link https://drive.google.com/a/google.com/file/d/0B9tNQOWdRuiWSUdVVE5rVDJudlk/view?usp=sharing Change-Id: I2e7933796b15e47005ba9970a8c1294416ef31a0
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java b/tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java
index 36e967275..81a0f6934 100644
--- a/tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java
+++ b/tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java
@@ -49,7 +49,7 @@ public class AccountsSettingsFragmentTests
final AccountsSettingsFragment fragment =
(AccountsSettingsFragment) getActivity().mFragment;
try {
- fragment.createAccountPicker(new String[0], null);
+ fragment.createAccountPicker(new String[0], null, null /* listener */);
fail("Expected IllegalArgumentException, never thrown");
} catch (IllegalArgumentException expected) {
// Expected.
@@ -76,7 +76,7 @@ public class AccountsSettingsFragmentTests
"2@example.com",
"3@example.com",
"4@example.com"},
- null);
+ null, null /* positiveButtonListner */);
dialog.show();
dialogHolder.mDialog = dialog;
latch.countDown();
@@ -118,7 +118,7 @@ public class AccountsSettingsFragmentTests
"2@example.com",
"3@example.com",
"4@example.com"},
- "3@example.com");
+ "3@example.com", null /* positiveButtonListner */);
dialog.show();
dialogHolder.mDialog = dialog;
latch.countDown();