launch IITCm in singleTask mode, move let preferenceActivity handle plugin installation

This commit is contained in:
Philipp Schaefer
2015-01-13 13:06:39 +01:00
parent c551c41609
commit 86bec261dc
2 changed files with 17 additions and 23 deletions

View File

@ -266,15 +266,6 @@ public class IITC_Mobile extends Activity
.show();
}
}
// intent MIME type and uri path may be null
final String type = intent.getType() == null ? "" : intent.getType();
final String path = uri.getPath() == null ? "" : uri.getPath();
if (path.endsWith(".user.js") || type.contains("javascript")) {
final Intent prefIntent = new Intent(this, PluginPreferenceActivity.class);
prefIntent.setDataAndType(uri, intent.getType());
startActivity(prefIntent);
}
}
if (Intent.ACTION_SEARCH.equals(action)) {