added default plugin icon plus JSInterface method

This commit is contained in:
Philipp Schaefer 2013-12-03 14:13:57 +01:00
parent a9ecd268ac
commit 2522a97ee9
5 changed files with 11 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

View File

@ -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");
}
});
}
}