trigger plugin installation on *.user.js file intent

This commit is contained in:
Philipp Schaefer
2014-02-12 23:01:02 +01:00
parent 2054b5f790
commit b9499e2d1b
5 changed files with 149 additions and 45 deletions

View File

@ -228,6 +228,13 @@ public class IITC_Mobile extends Activity
.show();
}
}
if (uri.getPath().endsWith(".user.js")) {
final Intent prefIntent = new Intent(this, IITC_PluginPreferenceActivity.class);
prefIntent.putExtra("url", uri.toString());
startActivity(prefIntent);
// TODO receive intent, start dialog if user want to install $plugin, reload IITC
}
}
if (Intent.ACTION_SEARCH.equals(action)) {