added default plugin icon plus JSInterface method
This commit is contained in:
@ -178,4 +178,15 @@ public class IITC_JSInterface {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// some plugins may have no specific icons...add a default icon
|
||||
@JavascriptInterface
|
||||
public void addPane(final String name, final String label) {
|
||||
mIitc.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mIitc.getNavigationHelper().addPane(name, label, "ic_action_new_event");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user