summaryrefslogtreecommitdiff
path: root/client/Piztor/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/Piztor/src')
-rw-r--r--client/Piztor/src/com/macaroon/piztor/Main.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/Main.java b/client/Piztor/src/com/macaroon/piztor/Main.java
index 952b7f2..5aa767d 100644
--- a/client/Piztor/src/com/macaroon/piztor/Main.java
+++ b/client/Piztor/src/com/macaroon/piztor/Main.java
@@ -236,7 +236,9 @@ public class Main extends PiztorAct {
requesLocation(Infomation.myInfo.gid);
break;
case FocuseButtonPress:
- mapMaker.UpdateLocationOverlay(locData, true);
+ if( locData != null) {
+ mapMaker.UpdateLocationOverlay(locData, true);
+ } else mapMaker.InitMap();
break;
case SuccessFetch:
flushMap();
@@ -299,6 +301,8 @@ public class Main extends PiztorAct {
mapMaker.InitMap();
mLocClient = new LocationClient(this);
locData = new LocationData();
+ locData.latitude = 31.032247;
+ locData.longitude = 121.445937;
mLocClient.registerLocationListener(myListener);
LocationClientOption option = new LocationClientOption();
option.setOpenGps(true);