Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -21,7 +21,7 @@ struct MainPage { | @@ -21,7 +21,7 @@ struct MainPage { | ||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | aboutToAppear() { | 23 | aboutToAppear() { |
| 24 | - HWLocationUtils.startLocationService() | 24 | + |
| 25 | this.breakpointSystem.register() | 25 | this.breakpointSystem.register() |
| 26 | 26 | ||
| 27 | let context = getContext(this) as common.UIAbilityContext | 27 | let context = getContext(this) as common.UIAbilityContext |
| @@ -31,6 +31,7 @@ struct MainPage { | @@ -31,6 +31,7 @@ struct MainPage { | ||
| 31 | 31 | ||
| 32 | // WDPushNotificationManager.getInstance().sendLocalNotification() | 32 | // WDPushNotificationManager.getInstance().sendLocalNotification() |
| 33 | } | 33 | } |
| 34 | + HWLocationUtils.startLocationService() | ||
| 34 | }) | 35 | }) |
| 35 | 36 | ||
| 36 | Logger.info(TAG, `aboutToAppear `); | 37 | Logger.info(TAG, `aboutToAppear `); |
-
Please register or login to post a comment