Merge "Fix stale header height being used in scroll to header calculation" into main
This commit is contained in:
commit
c1de065650
4 files changed
+63
-12
No files matched your search
@@ -495,9 +495,12 @@ public class PrivateProfileManager extends UserProfileManager {
|
||||
if (rowToExpandToWithRespectToHeader == -1) {
|
||||
rowToExpandToWithRespectToHeader = currentItem.rowIndex;
|
||||
}
|
||||
// If there are no tabs, decrease the row to scroll to by 1 since the header
|
||||
// may be cut off slightly.
|
||||
int rowToScrollTo =
|
||||
(int) Math.floor((double) (mAllApps.getHeight() - psHeaderHeight
|
||||
- mAllApps.getHeaderProtectionHeight()) / allAppsCellHeight);
|
||||
- mAllApps.getHeaderProtectionHeight()) / allAppsCellHeight)
|
||||
- (mAllApps.isUsingTabs() ? 0 : 1);
|
||||
int currentRowDistance = currentItem.rowIndex - rowToExpandToWithRespectToHeader;
|
||||
// rowToScrollTo - 1 since the item to scroll to is 0 indexed.
|
||||
if (currentRowDistance == rowToScrollTo - 1) {
|
||||
|
||||
Reference in new issue
Block a user