Moving DeviceProfile properties into DeviceProperties data class

Bug: 419264653
Flag: EXEMPT refactor
Test: DeviceProfileDumpTest
Test: All Image tests
Change-Id: I638f88cd76b926917965dbf9e70b5bdfff5971e0
This commit is contained in:
Sebastian Franco committed 2025-05-23 10:42:26 -07:00
1 parent 48e7365190
commit e1111e28c2
127 files changed
+726 -596

No files matched your search

@@ -435,7 +435,7 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
@Override
public void onDragEnd(float velocity) {
float successfulShiftThreshold = mActivityContext.getDeviceProfile().isTablet
float successfulShiftThreshold = mActivityContext.getDeviceProfile().getDeviceProperties().isTablet()
? TABLET_BOTTOM_SHEET_SUCCESS_TRANSITION_PROGRESS : SUCCESS_TRANSITION_PROGRESS;
if ((mSwipeDetector.isFling(velocity) && velocity > 0)
|| mTranslationShift > successfulShiftThreshold) {