Skip to content

Commit

Permalink
updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ELY3M committed Feb 2, 2020
1 parent 022ccb8 commit 85e8e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import android.view.KeyEvent
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.Toolbar.OnMenuItemClickListener
import joshuatee.wx.MyApplication
import joshuatee.wx.R
import joshuatee.wx.UIPreferences
import joshuatee.wx.activitiesmisc.WebView
Expand All @@ -47,7 +48,8 @@ class SettingsAboutActivity : AudioPlayActivity(), OnMenuItemClickListener {
private var keyCodeDiag = ""
private val faqUrl = "https://docs.google.com/document/d/1OQrviP10XBvQZ7QKh5R4bsd72ZKffK5f0ISRuCaSk5k/edit?usp=sharing"
private val iOSUrl = "https://apps.apple.com/us/app/wxl23/id1171250052"
private val releaseNotesUrl = "https://docs.google.com/document/d/1A7rvP3QrJg0QqoEtKgU4B_VqLkjECijb4CFtXyNQNAM/edit?usp=sharing"
//private val releaseNotesUrl = "https://docs.google.com/document/d/1A7rvP3QrJg0QqoEtKgU4B_VqLkjECijb4CFtXyNQNAM/edit?usp=sharing"
private val releaseNotesUrl = "https://github.com/ELY3M/wX---modded-by-ELY-M/blob/master/README.md"

@SuppressLint("MissingSuperCall")
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -90,7 +92,7 @@ class SettingsAboutActivity : AudioPlayActivity(), OnMenuItemClickListener {
emailButton.setOnClickListener(View.OnClickListener {
val intent = Intent(Intent.ACTION_SENDTO)
intent.data = Uri.parse("mailto:")
intent.putExtra(Intent.EXTRA_EMAIL, arrayOf("joshua.tee@gmail.com"))
intent.putExtra(Intent.EXTRA_EMAIL, arrayOf(MyApplication.emailAsString))
intent.putExtra(Intent.EXTRA_SUBJECT, "")
startActivity(Intent.createChooser(intent, "Send Email"))
})
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/joshuatee/wx/util/UtilityAlertDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object UtilityAlertDialog {
val alert = AlertDialog.Builder(context)
alert.setTitle(title)
alert.setIcon(icon)
alert.setMessage(message).setCancelable(true).setPositiveButton("OK") { dialog, id -> dialog.cancel() }
alert.setMessage(message).setCancelable(true).setPositiveButton("OK") { dialog, _ -> dialog.cancel() }
alert.create().show()
}

Expand Down

0 comments on commit 85e8e6f

Please sign in to comment.