fix: ProfileGalleryView Click and Swip

This commit is contained in:
xtaodada 2024-02-07 12:31:18 +08:00
parent 20dff2020d
commit 99fc6e7ba6
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 6 additions and 8 deletions

View File

@ -364,10 +364,6 @@ public class AvatarPreviewPagerIndicator extends View implements ProfileGalleryV
postInvalidateOnAnimation();
}
@Override
public void onClick() {
}
@Override
public void onPhotosLoaded() {
}

View File

@ -41,6 +41,8 @@ import org.telegram.ui.ProfileActivity;
import java.util.ArrayList;
import tw.nekomimi.nekogram.NekoConfig;
public class ProfileGalleryView extends CircularViewPager implements NotificationCenter.NotificationCenterDelegate {
private final PointF downPoint = new PointF();
@ -129,7 +131,7 @@ public class ProfileGalleryView extends CircularViewPager implements Notificatio
void onRelease();
void onClick();
default void onClick() {};
void onPhotosLoaded();
@ -1227,9 +1229,9 @@ public class ProfileGalleryView extends CircularViewPager implements Notificatio
item.imageView.setRoundRadius(roundTopRadius, roundTopRadius, roundBottomRadius, roundBottomRadius);
item.imageView.setOnClickListener(__ -> {
callback.onClick();
});
if (NekoConfig.disablePhotoSideAction.Bool()) {
item.imageView.setOnClickListener(__ -> callback.onClick());
}
item.imageView.setTag(realPosition);