mirror of
http://galexander.org/git/simplesshd.git
synced 2025-06-09 14:38:44 +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();
|
reset_keys();
|
||||||
return true;
|
return true;
|
||||||
case R.id.doc: {
|
case R.id.doc: {
|
||||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
try {
|
||||||
i.setData(Uri.parse("http://www.galexander.org/software/simplesshd"));
|
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||||
startActivity(i);
|
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;
|
} return true;
|
||||||
case R.id.about: {
|
case R.id.about: {
|
||||||
AlertDialog.Builder b = new AlertDialog.Builder(this);
|
AlertDialog.Builder b = new AlertDialog.Builder(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user