Fix version issue 🇫🇷
This commit is contained in:
1 parent
d82a73a35a
commit
3ab2447e80
2 files changed
+12
-1
No files matched your search
@@ -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'
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user