changes to aidl nav update method. need testing.
This commit is contained in:
parent
575e936d2e
commit
f7f6dec1b3
2 changed files with 3 additions and 6 deletions
|
@ -1943,7 +1943,7 @@ public class OsmandAidlApi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (Entry<Long, OsmandAidlService.AidlCallbackParams> cb : OsmandAidlService.getAidlCallbacks().entrySet()) {
|
for (Entry<Long, OsmandAidlService.AidlCallbackParams> cb : OsmandAidlService.getAidlCallbacks().entrySet()) {
|
||||||
if (cb.getValue().getKey() == KEY_ON_NAV_DATA_UPDATE) { //add bitwise check instead
|
if ((cb.getValue().getKey() & KEY_ON_NAV_DATA_UPDATE) > 0) {
|
||||||
try {
|
try {
|
||||||
cb.getValue().getCallback().updateNavigationInfo(directionInfo);
|
cb.getValue().getCallback().updateNavigationInfo(directionInfo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -89,11 +89,8 @@ public class OsmandAidlService extends Service {
|
||||||
|
|
||||||
private static final String DATA_KEY_RESULT_SET = "resultSet";
|
private static final String DATA_KEY_RESULT_SET = "resultSet";
|
||||||
|
|
||||||
public static final int KEY_ON_SEARCH_COMPLETE = 1;
|
public static final int KEY_ON_UPDATE = 1;
|
||||||
public static final int KEY_ON_UPDATE = 2;
|
public static final int KEY_ON_NAV_DATA_UPDATE = 2;
|
||||||
public static final int KEY_ON_APP_INIT = 3;
|
|
||||||
public static final int KEY_ON_GPX_BMP_CREATED = 4;
|
|
||||||
public static final int KEY_ON_NAV_DATA_UPDATE = 5;
|
|
||||||
|
|
||||||
private static Map<Long, AidlCallbackParams> callbacks;
|
private static Map<Long, AidlCallbackParams> callbacks;
|
||||||
private Handler mHandler = null;
|
private Handler mHandler = null;
|
||||||
|
|
Loading…
Reference in a new issue