diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-07-14 15:30:24 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-07-14 15:30:39 -0700 |
commit | 857bfcf3247ef765e16ce595c10e4c1fa5c2a69b (patch) | |
tree | 11f7a1b19d0b26fd34e3bd452cf29cacc769b2bb /src/com/android/launcher3/util | |
parent | ff9155674d423fcca84442c1f0817adc16f5544b (diff) | |
download | android_packages_apps_Trebuchet-857bfcf3247ef765e16ce595c10e4c1fa5c2a69b.tar.gz android_packages_apps_Trebuchet-857bfcf3247ef765e16ce595c10e4c1fa5c2a69b.tar.bz2 android_packages_apps_Trebuchet-857bfcf3247ef765e16ce595c10e4c1fa5c2a69b.zip |
Fixing some comments
Change-Id: I9e6eaaf9ee145e2f37dfb97a3259509a72cd73af
Diffstat (limited to 'src/com/android/launcher3/util')
-rw-r--r-- | src/com/android/launcher3/util/MultiStateAlphaController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/util/MultiStateAlphaController.java b/src/com/android/launcher3/util/MultiStateAlphaController.java index df73bfdbc..2a4936146 100644 --- a/src/com/android/launcher3/util/MultiStateAlphaController.java +++ b/src/com/android/launcher3/util/MultiStateAlphaController.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 The Android Open Source Project + * Copyright (C) 2016 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. @@ -53,6 +53,10 @@ public class MultiStateAlphaController { : (mAm.isEnabled() ? View.GONE : View.INVISIBLE)); } + /** + * Returns an animator which changes the alpha at the index {@param index} + * to {@param finalAlpha}. Alphas at other index are not affected. + */ public Animator animateAlphaAtIndex(float finalAlpha, final int index) { if (Float.compare(finalAlpha, mAlphas[index]) == 0) { // Return a dummy animator to avoid null checks. |