Fixed documents saving, changed long vibration pattern
This commit is contained in:
parent
9f7b47f517
commit
b8ecf4e083
@ -80,7 +80,7 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 8
|
||||
targetSdkVersion 19
|
||||
versionCode 318
|
||||
versionCode 319
|
||||
versionName "1.8.0"
|
||||
}
|
||||
}
|
||||
|
@ -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});
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user