Fixed documents saving, changed long vibration pattern

This commit is contained in:
DrKLO 2014-08-31 12:02:28 +03:00
parent 9f7b47f517
commit b8ecf4e083
3 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 318
versionCode 319
versionName "1.8.0"
}
}

View File

@ -447,7 +447,7 @@ public class NotificationsController {
} else if (needVibrate == 0 || needVibrate == 5) {
mBuilder.setDefaults(NotificationCompat.DEFAULT_VIBRATE);
} else if (needVibrate == 3) {
mBuilder.setVibrate(new long[]{0, 300, 100, 300});
mBuilder.setVibrate(new long[]{0, 500});
}
} else {
mBuilder.setVibrate(new long[]{0, 0});

View File

@ -2791,7 +2791,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 1, null);
} else if (selectedObject.type == 1) {
MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 0, null);
} else if (selectedObject.type == 8) {
} else if (selectedObject.type == 8 || selectedObject.type == 9) {
MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 2, selectedObject.messageOwner.media.document.file_name);
}
} else if (option == 5) {