Skip to content

Commit 48c7715

Browse files
committed
Dismiss loading dialog on UI thread
1 parent 085237d commit 48c7715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/tk/superl2/xwifi/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class MainActivity: Activity() {
9494
}
9595
override fun onPostExecute(result: Unit?) {
9696
(mWifiListView.adapter as ArrayAdapter<*>).notifyDataSetChanged()
97-
loadingDialog.dismiss()
97+
runOnUiThread { loadingDialog.dismiss() }
9898
}
9999
}
100100

0 commit comments

Comments
 (0)