Skip to content

Commit

Permalink
移除Log
Browse files Browse the repository at this point in the history
  • Loading branch information
YiuChoi committed Apr 18, 2016
1 parent a31fe04 commit 7026a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions app/src/main/java/name/caiyao/fakegps/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ protected void onCreate(Bundle savedInstanceState) {
aMap = mv.getMap();
aMap.setMapType(AMap.MAP_TYPE_NORMAL);
aMap.setOnMapClickListener(this);
}

@Override
protected void onResume() {
super.onResume();
LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);


try {
String mockProviderName = LocationManager.GPS_PROVIDER;
locationManager.addTestProvider(mockProviderName,
Expand All @@ -59,11 +61,6 @@ protected void onCreate(Bundle savedInstanceState) {
hasOpen = false;
Toast.makeText(this, "请打开模拟位置权限!", Toast.LENGTH_SHORT).show();
}
}

@Override
protected void onResume() {
super.onResume();
mv.onResume();
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/name/caiyao/fakegps/MockGpsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public int onStartCommand(Intent intent, int flags, int startId) {
}

currentThread = new UpdateGPSThread();

currentThread.mLocation = intent.getStringExtra("location");
currentThread.start();
}
Expand Down

0 comments on commit 7026a69

Please sign in to comment.