mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-03 19:50:55 +00:00
fix crash from ActivityNotFoundException when note 7 user attempts to
view documentation
This commit is contained in:
parent
0e5b7433c2
commit
af616dbc79
@ -78,9 +78,22 @@ public class SimpleSSHD extends Activity
|
||||
reset_keys();
|
||||
return true;
|
||||
case R.id.doc: {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||
i.setData(Uri.parse("http://www.galexander.org/software/simplesshd"));
|
||||
startActivity(i);
|
||||
try {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||
i.setData(Uri.parse("http://www.galexander.org/software/simplesshd"));
|
||||
startActivity(i);
|
||||
} catch (Exception e) {
|
||||
new AlertDialog.Builder(this)
|
||||
.setCancelable(true)
|
||||
.setPositiveButton("OK",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface di, int which) { }
|
||||
})
|
||||
.setIcon(android.R.drawable.ic_dialog_info)
|
||||
.setTitle("no browser")
|
||||
.setMessage("YOU: a note 7 owner with no browser installed on your android?\nME: an app developer who keeps getting crash reports and wants to hear your story. email nobrowserdroid@galexander.org")
|
||||
.show();
|
||||
}
|
||||
} return true;
|
||||
case R.id.about: {
|
||||
AlertDialog.Builder b = new AlertDialog.Builder(this);
|
||||
|
Loading…
Reference in New Issue
Block a user