new notification for external plugins

This commit is contained in:
Philipp Schaefer
2014-01-15 13:56:48 +01:00
parent b85ce30904
commit 08e9aac296
5 changed files with 109 additions and 69 deletions

View File

@@ -47,6 +47,10 @@ public class IITC_PluginPreferenceActivity extends PreferenceActivity {
public void onBuildHeaders(List<Header> target) {
getActionBar().setDisplayHomeAsUpEnabled(true);
// notify about external plugins
IITC_NotificationHelper nh = new IITC_NotificationHelper(this);
nh.showNotice(IITC_NotificationHelper.NOTICE_EXTPLUGINS);
mHeaders = target;
// since the plugins container is static,
// it is enough to parse the plugin only on first start.
@@ -62,11 +66,12 @@ public class IITC_PluginPreferenceActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (onIsMultiPane()) {
getIntent()
.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, PluginsFragment.class.getName());
}
super.onCreate(savedInstanceState);
}
@Override