Skip to content
Commit 6084cc4c authored by Martyna Mikoda's avatar Martyna Mikoda
Browse files

Use maxBy instead of max for UnusedPeriod enum

Replace max with maxBy in UnusedPeriod enum in UnusedAppsViewModel. It makes the code less error prone in case out of order element is added to the enum.

Relnote: Improving user info message about Unused Apps Hibernation.

Bug: http://b/265670665
Change-Id: Ie6eb7a78458767838aea90630d173678995a85e7
Test: Locally on TV with m -j50 GooglePermissionController
Followup: I4165b840ec38b53a6bc5290fa778a0409a5986a3
(cherry picked from commit 91dedc52)
Merged-In: Ie6eb7a78458767838aea90630d173678995a85e7
(cherry picked from commit ed075dcb52f184964df3442a3c546c349fb273be)
Merged-In: Ie6eb7a78458767838aea90630d173678995a85e7
parent 290319b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment