Avoid a couple possible NullPointerExceptions
This commit is contained in:
父節點
e070883934
當前提交
71be2d8e82
@ -214,13 +214,13 @@ public class AppDetails extends ListActivity {
|
||||
Uri data = i.getData();
|
||||
if (data != null) {
|
||||
if (data.isHierarchical()) {
|
||||
if (data.getHost().equals("details")) {
|
||||
if (data.getHost() != null && data.getHost().equals("details")) {
|
||||
// market://details?id=app.id
|
||||
appid = data.getQueryParameter("id");
|
||||
} else {
|
||||
// https://f-droid.org/app/app.id
|
||||
appid = data.getLastPathSegment();
|
||||
if (appid.equals("app")) appid = null;
|
||||
if (appid != null && appid.equals("app")) appid = null;
|
||||
}
|
||||
} else {
|
||||
// fdroid.app:app.id
|
||||
|
載入中…
x
新增問題並參考
Block a user