add handleException to startRemoteUpdates

This commit is contained in:
Chumva 2018-08-31 13:07:17 +03:00
parent 5ce94dc933
commit 2f731a9036

View file

@ -618,7 +618,6 @@ public class OsmandAidlService extends Service {
callbacks.remove(callbackId); callbacks.remove(callbackId);
return true; return true;
} }
};
void startRemoteUpdates(final long updateTimeMS, final long callbackId, final IOsmAndAidlCallback callback) { void startRemoteUpdates(final long updateTimeMS, final long callbackId, final IOsmAndAidlCallback callback) {
mHandler.postDelayed(new Runnable() { mHandler.postDelayed(new Runnable() {
@ -632,9 +631,10 @@ public class OsmandAidlService extends Service {
startRemoteUpdates(updateTimeMS, callbackId, callback); startRemoteUpdates(updateTimeMS, callbackId, callback);
} }
} catch (RemoteException e) { } catch (RemoteException e) {
LOG.error("AIDL e.getMessage()", e); handleException(e);
} }
} }
}, updateTimeMS); }, updateTimeMS);
} }
};
} }