fix crash caused by long pressing blank area in favorite mode
This commit is contained in:
1 parent
7426e3e78c
commit
29700e6f18
1 file changed
+2
-1
@@ -861,11 +861,12 @@ BOOL isCustomResolution(CGSize res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(currentSettingsMenuMode == FavoriteSettings){
|
if(currentSettingsMenuMode == FavoriteSettings){
|
||||||
|
if(!capturedStack) return;
|
||||||
|
|
||||||
switch (gesture.state) {
|
switch (gesture.state) {
|
||||||
case UIGestureRecognizerStateBegan:
|
case UIGestureRecognizerStateBegan:
|
||||||
// 创建快照视图
|
// 创建快照视图
|
||||||
[self findCapturedStackByTouchLocation:locationInParentStack];
|
[self findCapturedStackByTouchLocation:locationInParentStack];
|
||||||
if(capturedStack == nil) return;
|
|
||||||
|
|
||||||
snapshot = [capturedStack snapshotViewAfterScreenUpdates:YES];
|
snapshot = [capturedStack snapshotViewAfterScreenUpdates:YES];
|
||||||
//snapshot.center = capturedStack.center;
|
//snapshot.center = capturedStack.center;
|
||||||
|
|||||||
Reference in new issue
Block a user