Don't run getIntent() twice

This commit is contained in:
Daniel Martí 2013-09-26 00:44:56 +02:00
parent 5e0dfcc631
commit 32a106ad1d
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ public class AppDetails extends ListActivity {
Intent i = getIntent(); Intent i = getIntent();
appid = ""; appid = "";
Uri data = getIntent().getData(); Uri data = i.getData();
if (data != null) { if (data != null) {
if (data.isHierarchical()) { if (data.isHierarchical()) {
if (data.getHost().equals("details")) { if (data.getHost().equals("details")) {

View File

@ -83,7 +83,7 @@ public class FDroid extends FragmentActivity {
setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
Intent i = getIntent(); Intent i = getIntent();
Uri data = getIntent().getData(); Uri data = i.getData();
if (data != null) { if (data != null) {
String appid = data.getQueryParameter("fdid"); String appid = data.getQueryParameter("fdid");
// If appid == null, we just browse all the apps. // If appid == null, we just browse all the apps.