osw layouTool post orientation change actions
This commit is contained in:
1 parent
dd9ad9728a
commit
04ecd45f7c
1 file changed
+7
-2
+7
-2
@@ -273,8 +273,8 @@
|
|||||||
|
|
||||||
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator{
|
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator{
|
||||||
viewWillBeResized = true;
|
viewWillBeResized = true;
|
||||||
//if(CGSizeEqualToSize(size, self.view.frame.size)) return;
|
[self clearStickIndicator];
|
||||||
[self saveTapped:nil];
|
if(!_quickSwitchEnabled) [self saveTapped:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)deviceOrientationDidChange{
|
- (void)deviceOrientationDidChange{
|
||||||
@@ -283,7 +283,12 @@
|
|||||||
|
|
||||||
- (void)handleOrientationChangeForOnScreenWidgets{
|
- (void)handleOrientationChangeForOnScreenWidgets{
|
||||||
if(!viewWillBeResized) return;
|
if(!viewWillBeResized) return;
|
||||||
|
[self setupWidgetPanel];
|
||||||
|
|
||||||
viewWillBeResized = false;
|
viewWillBeResized = false;
|
||||||
|
selectedWidgetView = nil;
|
||||||
|
selectedControllerLayer = nil;
|
||||||
|
|
||||||
_oscProfilesTableViewController.layoutViewBounds = self.view.bounds;
|
_oscProfilesTableViewController.layoutViewBounds = self.view.bounds;
|
||||||
[OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager
|
[OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager
|
||||||
[self reloadOnScreenWidgetViews];
|
[self reloadOnScreenWidgetViews];
|
||||||
|
|||||||
Reference in new issue
Block a user