Broadcasts, updated gif lib, blur image\video preview

Note: untested, don’t upload to market
This commit is contained in:
DrKLO 2014-07-27 02:28:33 +04:00
parent e5cb3685a0
commit 91ae97e257
93 changed files with 1479 additions and 820 deletions

View file

@ -400,7 +400,7 @@ public class NotificationsController {
}
if (photoPath != null) {
Bitmap img = FileLoader.getInstance().getImageFromMemory(photoPath, null, null, "50_50", false);
Bitmap img = FileLoader.getInstance().getImageFromMemory(photoPath, null, null, "50_50");
if (img != null) {
mBuilder.setLargeIcon(img);
}
@ -536,7 +536,7 @@ public class NotificationsController {
Boolean value = settingsCache.get(dialog_id);
boolean isChat = (int)dialog_id < 0;
popup = preferences.getInt(isChat ? "popupGroup" : "popupAll", 0);
popup = (int)dialog_id == 0 ? 0 : preferences.getInt(isChat ? "popupGroup" : "popupAll", 0);
if (value == null) {
int notify_override = preferences.getInt("notify2_" + dialog_id, 0);
value = !(notify_override == 2 || (!preferences.getBoolean("EnableAll", true) || isChat && !preferences.getBoolean("EnableGroup", true)) && notify_override == 0);