Catch missing permissions exception
Этот коммит содержится в:
@@ -82,13 +82,21 @@ public class TrackingController implements PositionProvider.PositionListener, Ne
|
||||
if (isOnline) {
|
||||
read();
|
||||
}
|
||||
try {
|
||||
positionProvider.startUpdates();
|
||||
} catch (SecurityException e) {
|
||||
Log.w(TAG, e);
|
||||
}
|
||||
networkManager.start();
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
networkManager.stop();
|
||||
try {
|
||||
positionProvider.stopUpdates();
|
||||
} catch (SecurityException e) {
|
||||
Log.w(TAG, e);
|
||||
}
|
||||
handler.removeCallbacksAndMessages(null);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user