summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-07-31 09:34:15 -0700
committerClark Scheff <clark@cyngn.com>2014-07-31 09:34:15 -0700
commitf444d52c6b9e010c32e5f9cb05038c3abbab6261 (patch)
tree72291d9cb8c4003a1dbb9a1e825d12e9873e9f17 /src/com
parent303ad6c625d138aa72721a4aba224b72d0fc1d0c (diff)
downloadpackages_apps_ThemeChooser-f444d52c6b9e010c32e5f9cb05038c3abbab6261.zip
packages_apps_ThemeChooser-f444d52c6b9e010c32e5f9cb05038c3abbab6261.tar.gz
packages_apps_ThemeChooser-f444d52c6b9e010c32e5f9cb05038c3abbab6261.tar.bz2
Only fade the unselected cards back in.
Change-Id: If9908e625f502674f77b0ac9eaf95eea5429df33
Diffstat (limited to 'src/com')
-rw-r--r--src/com/cyngn/theme/chooser/ThemeFragment.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/cyngn/theme/chooser/ThemeFragment.java b/src/com/cyngn/theme/chooser/ThemeFragment.java
index 19f9fe9..c30bb13 100644
--- a/src/com/cyngn/theme/chooser/ThemeFragment.java
+++ b/src/com/cyngn/theme/chooser/ThemeFragment.java
@@ -1777,12 +1777,14 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb
}
public void fadeInCards() {
- mActiveCardId = -1;
for (int i = 0; i < mCardIdsToComponentTypes.size(); i++) {
- ComponentCardView card = (ComponentCardView) getView().findViewById(
- mCardIdsToComponentTypes.keyAt(i));
- if (card != null) card.animateCardFadeIn();
+ final int key = mCardIdsToComponentTypes.keyAt(i);
+ if (key != mActiveCardId) {
+ ComponentCardView card = (ComponentCardView) getView().findViewById(key);
+ if (card != null) card.animateCardFadeIn();
+ }
}
+ mActiveCardId = -1;
}
public boolean componentsChanged() {