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

Commit 35f30509 authored by Winson's avatar Winson
Browse files

Moving resources out of ResourceConfiguration.

- We can no longer make assumptions about the ability to
  get resources for the RecentsActivity before the activity
  is launched (the configuration of the launched activity
  can differ than the current configuration if a window
  is docked).  As such, we reduce RecentsConfiguration
  to the set of values that are context agnostic, or can
  be calculated directly given an application context.
  This ensures that we will continue to be able to compute
  the target task bounds given any context.

Change-Id: I423c90635eb294aa2d78a6f56771b98ee2b9d5e4
parent b4a6d984
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -19,9 +19,6 @@
    <!-- thickness (width) of the navigation bar on phones that require it -->
    <!-- thickness (width) of the navigation bar on phones that require it -->
    <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_width</dimen>
    <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_width</dimen>


    <!-- The side padding for the task stack as a percentage of the width. -->
    <item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.26</item>

    <!-- Standard notification width + gravity -->
    <!-- Standard notification width + gravity -->
    <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
    <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
    <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>
    <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>
+0 −4
Original line number Original line Diff line number Diff line
@@ -16,10 +16,6 @@
*/
*/
-->
-->
<resources>
<resources>
    <!-- Recent Applications parameters -->
    <!-- The side padding for the task stack as a percentage of the width. -->
    <item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.25</item>

    <fraction name="keyguard_clock_y_fraction_max">37%</fraction>
    <fraction name="keyguard_clock_y_fraction_max">37%</fraction>
    <fraction name="keyguard_clock_y_fraction_min">20%</fraction>
    <fraction name="keyguard_clock_y_fraction_min">20%</fraction>


+0 −5
Original line number Original line Diff line number Diff line
@@ -32,9 +32,4 @@


    <!-- Set to true to enable the user switcher on the keyguard. -->
    <!-- Set to true to enable the user switcher on the keyguard. -->
    <bool name="config_keyguardUserSwitcher">true</bool>
    <bool name="config_keyguardUserSwitcher">true</bool>

    <!-- Transposes the search bar layout in landscape. -->
    <bool name="recents_has_transposed_search_bar">true</bool>
    <!-- Transposes the nav bar in landscape (only used for purposes of layout). -->
    <bool name="recents_has_transposed_nav_bar">false</bool>
</resources>
</resources>
+0 −6
Original line number Original line Diff line number Diff line
@@ -39,12 +39,6 @@
    <!-- On tablets this is just the close_handle_height -->
    <!-- On tablets this is just the close_handle_height -->
    <dimen name="peek_height">@dimen/close_handle_height</dimen>
    <dimen name="peek_height">@dimen/close_handle_height</dimen>


    <!-- The side padding for the task stack as a percentage of the width. -->
    <item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.075</item>

    <!-- The height of the search bar space. -->
    <dimen name="recents_search_bar_space_height">72dp</dimen>

    <!-- The fraction of the screen height where the clock on the Keyguard has its center. The
    <!-- The fraction of the screen height where the clock on the Keyguard has its center. The
         max value is used when no notifications are displaying, and the min value is when the
         max value is used when no notifications are displaying, and the min value is when the
         highest possible number of notifications are showing. -->
         highest possible number of notifications are showing. -->
+0 −5
Original line number Original line Diff line number Diff line
@@ -25,10 +25,5 @@
    <!-- The maximum count of notifications on Keyguard. The rest will be collapsed in an overflow
    <!-- The maximum count of notifications on Keyguard. The rest will be collapsed in an overflow
         card. -->
         card. -->
    <integer name="keyguard_max_notification_count">5</integer>
    <integer name="keyguard_max_notification_count">5</integer>

    <!-- Transposes the search bar layout in landscape. -->
    <bool name="recents_has_transposed_search_bar">false</bool>
    <!-- Transposes the nav bar in landscape (only used for purposes of layout). -->
    <bool name="recents_has_transposed_nav_bar">false</bool>
</resources>
</resources>
Loading