commit | b572a3ef91ee31105de59144349f5291cc066216 | [log] [tgz] |
---|---|---|
author | Ching-Sung Li <chriscsli@google.com> | Tue Apr 16 07:56:58 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Tue Apr 16 07:56:58 2019 -0700 |
tree | 45b8e2cf616ac77a47d9f35e4e61ac0fba915714 | |
parent | 7c62516eff50133aeca5820084568903dbba21b5 [diff] | |
parent | b074689bcd2e7d672682ea54fe959fae52f61ed7 [diff] |
Only add new category into CategoryFragment am: b074689bcd Change-Id: I19162a59257c68e07c3ca9e0112b482f846f6bc3
diff --git a/src/com/android/wallpaper/picker/CategoryFragment.java b/src/com/android/wallpaper/picker/CategoryFragment.java index c0dd6a0..76f857b 100755 --- a/src/com/android/wallpaper/picker/CategoryFragment.java +++ b/src/com/android/wallpaper/picker/CategoryFragment.java
@@ -222,6 +222,10 @@ mAdapter.notifyItemInserted(getNumColumns()); mAwaitingCategories = true; } + // Not add existing category to category list + if (mCategories.indexOf(category) >= 0) { + return; + } int priority = category.getPriority();