Fix version issue 🇫🇷

This commit is contained in:
doregon committed 2021-07-27 22:06:25 -04:00
1 parent d82a73a35a
commit 3ab2447e80
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ else ifneq ($(filter 0,$(IOS)),)
endif
all: clean version native java extras package
all: clean native java extras package
version:
@echo 'Starting build task - version change'
+11
View File
@@ -52,6 +52,9 @@ int notchOffset;
width = width - notchOffset * 2;
CGFloat buttonScale = ((NSNumber *) getPreference(@"button_scale")).floatValue / 100.0;
UIPanGestureRecognizer *panRecognizer;
panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(wasDragged:)];
UILongPressGestureRecognizer *longpressGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(showControlPopover:)];
longpressGesture.minimumPressDuration = 0.5;
[self.view addGestureRecognizer:longpressGesture];
@@ -136,6 +139,14 @@ int notchOffset;
return NO;
}
- (void)wasDragged:(UIPanGestureRecognizer *)recognizer {
UIButton *button = (UIButton *)recognizer.view;
CGPoint translation = [recognizer translationInView:button];
button.center = CGPointMake(button.center.x + translation.x, button.center.y + translation.y);
[recognizer setTranslation:CGPointZero inView:button];
}
-(void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
if(@available(iOS 13.0, *)) {
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {