Don't run getIntent() twice
This commit is contained in:
parent
5e0dfcc631
commit
32a106ad1d
@ -198,7 +198,7 @@ public class AppDetails extends ListActivity {
|
||||
|
||||
Intent i = getIntent();
|
||||
appid = "";
|
||||
Uri data = getIntent().getData();
|
||||
Uri data = i.getData();
|
||||
if (data != null) {
|
||||
if (data.isHierarchical()) {
|
||||
if (data.getHost().equals("details")) {
|
||||
|
@ -83,7 +83,7 @@ public class FDroid extends FragmentActivity {
|
||||
setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
|
||||
|
||||
Intent i = getIntent();
|
||||
Uri data = getIntent().getData();
|
||||
Uri data = i.getData();
|
||||
if (data != null) {
|
||||
String appid = data.getQueryParameter("fdid");
|
||||
// If appid == null, we just browse all the apps.
|
||||
|
Loading…
x
Reference in New Issue
Block a user