fix recent emoji pane

1) Make recent list properly update and invalidate.
2) Show most-recently-used first.
3) Refactoring

Closes #3171
// FREEBIE
This commit is contained in:
Jake McGinty
2015-05-14 21:08:37 -07:00
committed by Moxie Marlinspike
parent 5ec9197912
commit cf420de65f
11 changed files with 210 additions and 172 deletions

View File

@@ -3,7 +3,7 @@ package org.thoughtcrime.securesms.components.emoji;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
public class StaticEmojiPageModel implements EmojiPageModel {
public class StaticEmojiPageModel extends EmojiPageModel {
@DrawableRes private final int icon;
@NonNull private final int[] codePoints;
@@ -19,6 +19,4 @@ public class StaticEmojiPageModel implements EmojiPageModel {
@NonNull public int[] getCodePoints() {
return codePoints;
}
@Override public void onCodePointSelected(int codePoint) { }
}