Skip to content

Commit

Permalink
Summary: Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispecoraro committed Jun 17, 2018
1 parent 0bcee39 commit 0ff0d3f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/src/main/java/org/glucosio/android/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,19 +416,6 @@ public void openSupportDialog() {
@Override
public void onClick(DialogInterface dialog, int which) {

// E-mail support is no longer an option.

// if (which == 0) {
// // Email
// Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:[email protected]"));
// boolean activityExists = emailIntent.resolveActivityInfo(getPackageManager(), 0) != null;
//
// if (activityExists) {
// startActivity(emailIntent);
// } else {
// showSnackBar(getResources().getString(R.string.menu_support_error1), Snackbar.LENGTH_LONG);
// }
// } else {
// Forum
String url = "http://community.glucosio.org/";
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
Expand All @@ -442,7 +429,6 @@ public void onClick(DialogInterface dialog, int which) {
i.setPackage(null);
startActivity(i);
}
//}
}
});
builder.show();
Expand Down

0 comments on commit 0ff0d3f

Please sign in to comment.