add handleException to startRemoteUpdates
This commit is contained in:
parent
5ce94dc933
commit
2f731a9036
1 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue