Allow plugins to add panes to mobile nav drawer

This commit is contained in:
fkloft
2013-12-02 23:18:55 +01:00
parent 40d25ad8ef
commit ad6a447bde
4 changed files with 22 additions and 4 deletions

View File

@@ -168,4 +168,14 @@ public class IITC_JSInterface {
}
});
}
@JavascriptInterface
public void addPane(final String name, final String label, final String icon) {
mIitc.runOnUiThread(new Runnable() {
@Override
public void run() {
mIitc.getNavigationHelper().addPane(name, label, icon);
}
});
}
}