Show portal highlighters in action bar

This commit is contained in:
fkloft
2013-09-18 16:43:12 +02:00
parent 6290ef56aa
commit daaef1575e
3 changed files with 104 additions and 13 deletions

View File

@ -230,6 +230,28 @@ public class IITC_JSInterface {
showMultiSelection();
}
@JavascriptInterface
public void addPortalHighlighter(final String name) {
final IITC_Mobile iitc = ((IITC_Mobile) mContext);
iitc.runOnUiThread(new Runnable() {
@Override
public void run() {
iitc.getActionBarHelper().addPortalHighlighter(name);
}
});
}
@JavascriptInterface
public void setActiveHighlighter(final String name) {
final IITC_Mobile iitc = ((IITC_Mobile) mContext);
iitc.runOnUiThread(new Runnable() {
@Override
public void run() {
iitc.getActionBarHelper().setActiveHighlighter(name);
}
});
}
// show all overlay layers in a multi selection list dialog
private void showMultiSelection() {
// build the layer chooser dialog