commit | dfd154f18df53eff5349edfd0c98d4ecdd057f52 | [log] [tgz] |
---|---|---|
author | Abhilasha Chahal <abhichahal@google.com> | Sun Feb 27 09:58:49 2022 +0000 |
committer | Abhilasha Chahal <abhichahal@google.com> | Wed Mar 23 21:09:54 2022 +0000 |
tree | ea5068cbd5922c235da66aef3874823cc31a7c9e | |
parent | f3d81b0a1c411c5dd4e9b457fd31a3084cac1a16 [diff] [blame] |
Use numAllAppsColumns to calculate height of all apps icons Additionally opens up access of some fields to allow them to be overridden. Test: Manually verified that Launcher3 layout does not change Launcher3 APKs: https://drive.google.com/drive/folders/1hBcZU9xou4tZJxbTmkya_LyBbD2oYuwV?resourcekey=0-R0I1IQ2rSUIEfPjW8S_ppA&usp=sharing Bug: 216150572 Change-Id: I4b97a7e9e15973fc5aa70a4b98f0b73dd5bf3c17
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 2f9b563..1cead11 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java
@@ -651,7 +651,7 @@ mDragLayer.onOneHandedModeStateChanged(activated); } - private void initDeviceProfile(InvariantDeviceProfile idp) { + protected void initDeviceProfile(InvariantDeviceProfile idp) { // Load configuration-specific DeviceProfile mDeviceProfile = idp.getDeviceProfile(this); if (isInMultiWindowMode()) {