mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 15:41:02 +00:00
Update to 8.4.4
This commit is contained in:
parent
ad6629f6fc
commit
f0f858ad3f
31 changed files with 1304 additions and 259 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue