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

Commit c2bd15fd authored by Andras Kloczl's avatar Andras Kloczl
Browse files

Fix slow page animations on large devices

- Change non-fling page snap animation duration
- Change fling gesture related minVelocity

Test: Scroll between home pages, allapps, folder pages
Bug: 229073876
Change-Id: Ib39187ec9c832e65dd0b71f8f4a00e1b636423a4
Merge "Hide web settings, if web suggestions is disabled" into tm-dev

Change-Id: Ib39187ec9c832e65dd0b71f8f4a00e1b636423a4
parent 2c3de6ef
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@
  -->

<resources>
<!-- PagedView  -->
    <dimen name="min_page_snap_velocity">3600dp</dimen>

<!-- Hotseat -->
    <dimen name="spring_loaded_hotseat_top_margin">44dp</dimen>

+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>

    <!-- The duration of the PagedView page snap animation -->
    <integer name="config_pageSnapAnimationDuration">550</integer>

</resources>
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
-->

<resources>
<!-- PagedView-->
    <dimen name="min_page_snap_velocity">3000dp</dimen>

<!-- DragController -->
    <dimen name="drag_flingToDeleteMinVelocity">-1000dp</dimen>

+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
-->

<resources>
<!-- PagedView  -->
    <dimen name="min_page_snap_velocity">5300dp</dimen>

<!-- Dynamic grid -->
    <dimen name="dynamic_grid_edge_margin">21.93dp</dimen>
    <dimen name="cell_layout_padding">29.33dp</dimen>
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
-->

<resources>
<!-- PagedView  -->
    <dimen name="min_page_snap_velocity">3400dp</dimen>

<!-- AllApps -->
    <dimen name="all_apps_bottom_sheet_horizontal_padding">28dp</dimen>

Loading