fix: ProfileGalleryView Click and Swip
This commit is contained in:
parent
20dff2020d
commit
99fc6e7ba6
@ -364,10 +364,6 @@ public class AvatarPreviewPagerIndicator extends View implements ProfileGalleryV
|
||||
postInvalidateOnAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPhotosLoaded() {
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user