reverse order in contact chooser

This commit is contained in:
Daniel Gultsch 2016-04-12 18:29:41 +02:00
parent 7223b5b274
commit 2a4db01709
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class ContactChooserTargetService extends ChooserTargetService implements
final Conversation conversation = conversations.get(i);
final String name = conversation.getName();
final Icon icon = Icon.createWithBitmap(mXmppConnectionService.getAvatarService().get(conversation, pixel));
final float score = (1.0f / MAX_TARGETS) * i;
final float score = 1 - (1.0f / MAX_TARGETS) * i;
final Bundle extras = new Bundle();
extras.putString("uuid", conversation.getUuid());
chooserTargets.add(new ChooserTarget(name, icon, score, componentName, extras));