Follow config overlay's order of aspect ratio options
Fix flaky UserAspectRatioAppsPageProviderTest by using advanceUntilIdle to make sure all coroutines are finished before asserting. Bug: 325911424 Test: atest UserAspectRatioDetailsTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:32815ad699448c5c5b1f38df6d2d2a881d4251c1) Merged-In: I83e9a7f31536c1a006789722b0310f3364d14337 Change-Id: I83e9a7f31536c1a006789722b0310f3364d14337
This commit is contained in:
committed by
Cherrypicker Worker
parent
a6f283382a
commit
a0f573a35e
@@ -66,7 +66,8 @@ public class UserAspectRatioDetails extends AppInfoBase implements
|
||||
private static final String TAG = UserAspectRatioDetails.class.getSimpleName();
|
||||
|
||||
private static final String KEY_HEADER_SUMMARY = "app_aspect_ratio_summary";
|
||||
private static final String KEY_HEADER_BUTTONS = "header_view";
|
||||
@VisibleForTesting
|
||||
static final String KEY_HEADER_BUTTONS = "header_view";
|
||||
|
||||
private static final String KEY_PREF_HALF_SCREEN = "half_screen_pref";
|
||||
private static final String KEY_PREF_DISPLAY_SIZE = "display_size_pref";
|
||||
@@ -237,6 +238,7 @@ public class UserAspectRatioDetails extends AppInfoBase implements
|
||||
return;
|
||||
}
|
||||
pref.setTitle(mUserAspectRatioManager.getAccessibleEntry(aspectRatio, mPackageName));
|
||||
pref.setOrder(getAspectRatioManager().getUserMinAspectRatioOrder(aspectRatio));
|
||||
pref.setOnClickListener(this);
|
||||
mKeyToAspectRatioMap.put(key, aspectRatio);
|
||||
mAspectRatioPreferences.add(pref);
|
||||
|
Reference in New Issue
Block a user