InlineFillService: Randomize the saved password count.
Makes it easy to test the plurality of the displayed text in settings. Bug: 169455298 Test: manual Change-Id: Ieaab97de874afeb4ed10f2867cd39348ba701954
This commit is contained in:
@@ -154,6 +154,11 @@ public class InlineFillService extends AutofillService {
|
||||
public void onSavedDatasetsInfoRequest(@NonNull SavedDatasetsInfoCallback callback) {
|
||||
callback.onSuccess(
|
||||
Collections.singleton(
|
||||
new SavedDatasetsInfo(SavedDatasetsInfo.TYPE_PASSWORDS, NUMBER_DATASETS)));
|
||||
new SavedDatasetsInfo(
|
||||
SavedDatasetsInfo.TYPE_PASSWORDS, sNumSavedDatasets)));
|
||||
sNumSavedDatasets++;
|
||||
sNumSavedDatasets %= 3;
|
||||
}
|
||||
|
||||
private static int sNumSavedDatasets = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user