File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
cSploit/src/org/csploit/android Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 68
68
import org .csploit .android .gui .dialogs .MultipleChoiceDialog ;
69
69
import org .csploit .android .gui .dialogs .SpinnerDialog ;
70
70
import org .csploit .android .gui .dialogs .SpinnerDialog .SpinnerDialogListener ;
71
+ import org .csploit .android .helpers .ThreadHelper ;
71
72
import org .csploit .android .net .Network ;
72
73
import org .csploit .android .net .Target ;
73
74
import org .csploit .android .plugins .ExploitFinder ;
@@ -607,15 +608,11 @@ public boolean onOptionsItemSelected(final MenuItem item) {
607
608
public void onInputEntered (String input ) {
608
609
final Target target = Target .getFromString (input );
609
610
if (target != null ) {
610
- // refresh the target listview
611
- MainActivity .this .runOnUiThread (new Runnable () {
611
+ ThreadHelper .getSharedExecutor ().execute (new Runnable () {
612
612
@ Override
613
613
public void run () {
614
- if (System .addOrderedTarget (target )
615
- && mTargetAdapter != null ) {
616
- mTargetAdapter
617
- .notifyDataSetChanged ();
618
- }
614
+ System .addOrderedTarget (target );
615
+ mTargetAdapter .update (null , null );
619
616
}
620
617
});
621
618
} else
You can’t perform that action at this time.
0 commit comments