You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f826435
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: APIJSON(Android)/APIJSON(AndroidStudio)/APIJSONApp/app/src/main/java/apijson/demo/client/activity_fragment/MainTabActivity.java
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -134,20 +134,6 @@ protected Fragment getFragment(int position) {
134
134
default:
135
135
returnMomentListFragment.createInstance();
136
136
}
137
-
// switch (position) {
138
-
// case 1:
139
-
// UserListFragment fragment = UserListFragment.createInstance(isLoggedIn ?
Copy file name to clipboardExpand all lines: APIJSON(Android)/APIJSON(AndroidStudio)/APIJSONApp/app/src/main/java/apijson/demo/client/activity_fragment/ScanActivity.java
Copy file name to clipboardExpand all lines: APIJSON(Android)/APIJSON(AndroidStudio)/APIJSONApp/app/src/main/java/apijson/demo/client/adapter/MomentAdapter.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,10 @@ public void onDataChanged() {
45
45
}
46
46
MomentItemdata = itemView.getData();
47
47
if (data == null) {
48
-
list.remove(itemView.getPosition());
48
+
if (itemView.getPosition() >= 0 && itemView.getPosition() < list.size()) {
Copy file name to clipboardExpand all lines: APIJSON(Android)/APIJSON(AndroidStudio)/APIJSONApp/app/src/main/java/apijson/demo/client/util/FunctionUtil.java
Copy file name to clipboardExpand all lines: APIJSON(Android)/APIJSON(AndroidStudio)/APIJSONApp/app/src/main/java/apijson/demo/client/util/HttpRequest.java
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,10 @@ public static void delete(JSONObject request, int requestCode, OnHttpResponseLis
0 commit comments