Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68d82759 authored by Jordan Silva's avatar Jordan Silva
Browse files

Converting orientation handler classes to kotlin

This conversion is a first step for the alignment bug fix and cleanup of the fake orientation classes. The goal is to have these classes following the new architecture using Kotlin, smaller, and testable.

Bug: 320314835
Bug: 328028913
Flag: N/A
Test: presubmit. manual.
Change-Id: If0d12ff8c69eca5528fbb6b092bddefd20bc37ba
parent 2155c072
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ public final class RecentsViewStateController extends
        // Create transition animations to split select
        RecentsPagedOrientationHandler orientationHandler =
                ((RecentsView) mLauncher.getOverviewPanel()).getPagedOrientationHandler();
        Pair<FloatProperty, FloatProperty> taskViewsFloat =
        Pair<FloatProperty<RecentsView>, FloatProperty<RecentsView>> taskViewsFloat =
                orientationHandler.getSplitSelectTaskOffset(
                        TASK_PRIMARY_SPLIT_TRANSLATION, TASK_SECONDARY_SPLIT_TRANSLATION,
                        mLauncher.getDeviceProfile());
+2 −1
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ import com.android.launcher3.states.StateAnimationConfig;
import com.android.launcher3.util.MultiPropertyFactory;
import com.android.quickstep.RecentsActivity;
import com.android.quickstep.views.ClearAllButton;
import com.android.quickstep.views.RecentsView;

/**
 * State controller for fallback recents activity
@@ -125,7 +126,7 @@ public class FallbackRecentsStateController implements StateHandler<RecentsState
            setter.add(pa.buildAnim());
        }

        Pair<FloatProperty, FloatProperty> taskViewsFloat =
        Pair<FloatProperty<RecentsView>, FloatProperty<RecentsView>> taskViewsFloat =
                mRecentsView.getPagedOrientationHandler().getSplitSelectTaskOffset(
                        TASK_PRIMARY_SPLIT_TRANSLATION, TASK_SECONDARY_SPLIT_TRANSLATION,
                        mActivity.getDeviceProfile());
+0 −704

File deleted.

Preview size limit exceeded, changes collapsed.

+659 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -795,7 +795,7 @@ public class PortraitPagedViewHandler extends DefaultPagedViewHandler implements
    }

    @Override
    public Float getFloatingTaskPrimaryTranslation(View floatingTask, DeviceProfile dp) {
    public float getFloatingTaskPrimaryTranslation(View floatingTask, DeviceProfile dp) {
        return dp.isLeftRightSplit
                ? floatingTask.getTranslationX()
                : floatingTask.getTranslationY();
Loading