File tree Expand file tree Collapse file tree
cSploit/src/org/csploit/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868import org .csploit .android .gui .dialogs .MultipleChoiceDialog ;
6969import org .csploit .android .gui .dialogs .SpinnerDialog ;
7070import org .csploit .android .gui .dialogs .SpinnerDialog .SpinnerDialogListener ;
71+ import org .csploit .android .helpers .ThreadHelper ;
7172import org .csploit .android .net .Network ;
7273import org .csploit .android .net .Target ;
7374import org .csploit .android .plugins .ExploitFinder ;
@@ -607,15 +608,11 @@ public boolean onOptionsItemSelected(final MenuItem item) {
607608 public void onInputEntered (String input ) {
608609 final Target target = Target .getFromString (input );
609610 if (target != null ) {
610- // refresh the target listview
611- MainActivity .this .runOnUiThread (new Runnable () {
611+ ThreadHelper .getSharedExecutor ().execute (new Runnable () {
612612 @ Override
613613 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 );
619616 }
620617 });
621618 } else
You can’t perform that action at this time.
0 commit comments