dquangsinh / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

search for empty string crashes APV #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Searching for empty string crashes APV

Original issue reported on code.google.com by arpruss on 21 Jan 2012 at 8:03

GoogleCodeExporter commented 8 years ago
Your edit Class OpenFileActivity.java funtion

static class Finder implements Runnable, DialogInterface.OnCancelListener, 
DialogInterface.OnClickListener {
.
.
.
public void dismissDialog() {
    final AlertDialog dialog = this.dialog;
    this.parent.runOnUiThread(new Runnable() {
        public void run() {
            try{
                //dialog.dismiss();
                Finder.this.dialog.dismiss();
            }catch(Exception e){
                e.printStackTrace();
            }
        }
    });
}
.
.

Original comment by atsa...@gmail.com on 26 Jan 2012 at 10:04

GoogleCodeExporter commented 8 years ago
   Your edit Class OpenFileActivity.java funtion

   private void findText(String text) {
        Log.d(TAG, "findText(" + text + ")");
        if (!text.equals("")){          
            this.findText = text;
            this.find(true);
        }
    }

Original comment by atsa...@gmail.com on 30 Jan 2012 at 5:14