mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Update tests for ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH
PM said we can enable ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH flags. Since I am enabling two-line text for all apps, it's possible that the text would have other texts within the app name itself. For example, if a title of an app is long for example "Amazon Shopping" the title can now be like "Amazon\nShopping". For tests to recognize its "Amazon shopping", I am resorting to identifying the app title based on the content description. Turn on the two feature flags in another CL bug: 287307252 test: manual Change-Id: I8bdc3db710514c9098ccb5d9781a100ac9b35eab
This commit is contained in:
@@ -147,9 +147,8 @@ public class ThemeIconsTest extends AbstractLauncherUiTest {
|
||||
for (int i = parent.getChildCount() - 1; i >= 0; i--) {
|
||||
viewQueue.add(parent.getChildAt(i));
|
||||
}
|
||||
} else if (view instanceof BubbleTextView) {
|
||||
BubbleTextView btv = (BubbleTextView) view;
|
||||
if (title.equals(btv.getText())) {
|
||||
} else if (view instanceof BubbleTextView btv) {
|
||||
if (title.equals(btv.getContentDescription().toString())) {
|
||||
icon = btv;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user