Skip to content

Commit 7b05483

Browse files
committed
notifyDatasetChanged whenever the global target list get modified.
1 parent a6b408a commit 7b05483

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cSploit/src/org/csploit/android/MainActivity.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ public void createOnlineLayout() {
168168
if (mUpdateStatus != null)
169169
mUpdateStatus.setVisibility(View.GONE);
170170

171-
if (mTargetAdapter != null)
171+
if (mTargetAdapter != null) {
172+
mTargetAdapter.notifyDataSetChanged();
172173
return;
174+
}
173175

174176
mTargetAdapter = new TargetAdapter();
175177

@@ -213,6 +215,9 @@ protected void onActivityResult(int requestCode, int resultCode,
213215
if (requestCode == WIFI_CONNECTION_REQUEST && resultCode == RESULT_OK
214216
&& intent.hasExtra(WifiScannerActivity.CONNECTED)) {
215217
System.reloadNetworkMapping();
218+
if(mTargetAdapter != null) {
219+
mTargetAdapter.notifyDataSetChanged();
220+
}
216221
try {
217222
onCreate(null);
218223
} catch (IllegalStateException e) {

0 commit comments

Comments
 (0)