add sane default emoji panel size

fixes #3661
Closes #3691
// FREEBIE
This commit is contained in:
Jake McGinty
2015-07-17 12:50:00 -07:00
committed by Moxie Marlinspike
parent cfc9514f89
commit 39c0fc0e5a
6 changed files with 60 additions and 177 deletions

View File

@@ -344,4 +344,8 @@ public class Util {
return (VERSION.SDK_INT >= VERSION_CODES.KITKAT && activityManager.isLowRamDevice()) ||
activityManager.getMemoryClass() <= 64;
}
public static int clamp(int value, int min, int max) {
return Math.min(Math.max(value, min), max);
}
}