Only have private space drawable section for beginning of private space section and keep letters for everything else.
spec: https://www.figma.com/design/uMzPkNMZpb7EyfHDo8usIa/V-%E2%80%A2-Toast-Butter?node-id=2746-180205&node-type=frame&m=dev As of recent request: Only using the bubble background for everything and have private space go back to using letters. Will include divider in followup. bug:358673724 Test photo: https://drive.google.com/file/d/1dC3fgfWiumhyLm4vI-VfnXIYQyjPyrnk/view?usp=sharing Flag: com.android.launcher3.letter_fast_scroller Change-Id: I30487581eec4bd3e1921de4e3d899cfe2e2a703f
This commit is contained in:
1 parent
e710e70bc8
commit
9d60a18c5c
4 files changed
+54
-9
No files matched your search
@@ -124,7 +124,8 @@ public class AlphabeticalAppsList<T extends Context & ActivityContext> implement
|
||||
mAllAppsStore.addUpdateListener(this);
|
||||
}
|
||||
mPrivateProfileAppScrollerBadge = new SpannableString(" ");
|
||||
mPrivateProfileAppScrollerBadge.setSpan(new ImageSpan(context,
|
||||
mPrivateProfileAppScrollerBadge.setSpan(new ImageSpan(context, Flags.letterFastScroller()
|
||||
? R.drawable.ic_private_profile_letter_list_fast_scroller_badge :
|
||||
R.drawable.ic_private_profile_app_scroller_badge, ImageSpan.ALIGN_CENTER),
|
||||
0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
@@ -437,8 +438,11 @@ public class AlphabeticalAppsList<T extends Context & ActivityContext> implement
|
||||
Log.d(TAG, "addAppsWithSections: adding sectionName: " + sectionName
|
||||
+ " with appInfoTitle: " + info.title);
|
||||
lastSectionName = sectionName;
|
||||
mFastScrollerSections.add(new FastScrollSectionInfo(hasPrivateApps ?
|
||||
mPrivateProfileAppScrollerBadge : sectionName, position));
|
||||
boolean usePrivateAppScrollerBadge = !Flags.letterFastScroller() && hasPrivateApps;
|
||||
FastScrollSectionInfo sectionInfo = new FastScrollSectionInfo(
|
||||
usePrivateAppScrollerBadge ?
|
||||
mPrivateProfileAppScrollerBadge : sectionName, position);
|
||||
mFastScrollerSections.add(sectionInfo);
|
||||
}
|
||||
position++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user