Commit 089d3e0d authored by Suphon Thanakornpakapong's avatar Suphon Thanakornpakapong
Browse files

Fix widget size seekbar position

parent fd3f907f
Pipeline #185937 passed with stage
in 2 minutes and 46 seconds
......@@ -3280,9 +3280,8 @@ public class LauncherActivity extends AppCompatActivity implements
});
AnimatorSet set = new AnimatorSet();
set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.Y,
mDeviceProfile.availableHeightPx,
mDeviceProfile.availableHeightPx - Utilities.pxFromDp(48, this)));
set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.TRANSLATION_Y,
Utilities.pxFromDp(48, this), 0));
set.setDuration(200);
set.setInterpolator(new LinearInterpolator());
set.addListener(new AnimatorListenerAdapter() {
......@@ -3366,8 +3365,8 @@ public class LauncherActivity extends AppCompatActivity implements
currentAnimator.cancel();
}
AnimatorSet set = new AnimatorSet();
set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.Y,
mDeviceProfile.availableHeightPx));
set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.TRANSLATION_Y,
Utilities.pxFromDp(48, this)));
set.setDuration(200);
set.setInterpolator(new LinearInterpolator());
set.addListener(new AnimatorListenerAdapter() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment