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

Commit 8762c788 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update system status chip animation length to 1.5s" into sc-dev am:...

Merge "Update system status chip animation length to 1.5s" into sc-dev am: 1090459a am: c395f1ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14985634

Change-Id: Id4572c0689d47a32d8f6203243408b7ec21e4dcb
parents b775f7a5 c395f1ab
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -383,10 +383,18 @@ const val ANIMATING_OUT = 3
const val SHOWING_PERSISTENT_DOT = 4

private const val TAG = "SystemStatusAnimationScheduler"
private const val DELAY: Long = 100
private const val DISPLAY_LENGTH = 5000L
private const val ENTRANCE_ANIM_LENGTH = 500L
private const val CHIP_ANIM_LENGTH = 500L
private const val DELAY = 0L

/**
 * The total time spent animation should be 1500ms. The entrance animation is how much time
 * we give to the system to animate system elements out of the way. Total chip animation length
 * will be equivalent to 2*chip_anim_length + display_length
 */
private const val ENTRANCE_ANIM_LENGTH = 250L
private const val CHIP_ANIM_LENGTH = 250L
// 1s + entrance time + chip anim_length
private const val DISPLAY_LENGTH = 1500L

private const val MIN_UPTIME: Long = 5 * 1000

private const val DEBUG = false