summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorsjtufs <[email protected]>2013-08-28 18:04:06 +0800
committersjtufs <[email protected]>2013-08-28 18:04:06 +0800
commit885d5a6078616aece0b12c521661c325b295ce6c (patch)
tree01238af2cc9ac4b0eda147dab5d98a1ce380dc20 /client
parent7aef0ec6a5ea7372de6a3c4b9d5f42e209845f8f (diff)
fixed #18
Diffstat (limited to 'client')
-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);