Update to 8.4.4

This commit is contained in:
xaxtix 2022-01-18 23:51:58 +03:00
parent ad6629f6fc
commit f0f858ad3f
31 changed files with 1304 additions and 259 deletions

View file

@ -564,7 +564,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
}
public void setCaption(CharSequence caption) {
hasCaptionForAllMedia = !TextUtils.isEmpty(caption);
hasCaptionForAllMedia = true;//!TextUtils.isEmpty(caption);
captionForAllMedia = caption;
}
@ -1903,6 +1903,11 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
public boolean validateGroupId(long groupId) {
return true;
}
@Override
public void onApplyCaption(CharSequence caption) {
}
}
public interface PhotoViewerProvider {
@ -1939,6 +1944,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
void onCaptionChanged(CharSequence caption);
boolean closeKeyboard();
boolean validateGroupId(long groupId);
void onApplyCaption(CharSequence caption);
}
private class FrameLayoutDrawer extends SizeNotifierFrameLayoutPhoto {
@ -6755,6 +6761,9 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
if (captionEditText.getFieldCharSequence().length() != 0 && !placeProvider.isPhotoChecked(currentIndex)) {
setPhotoChecked();
}
if (placeProvider != null) {
placeProvider.onApplyCaption(caption);
}
setCurrentCaption(null, result[0], false);
}
captionEditText.setTag(null);