Skip to content

Commit

Permalink
feat: jump to github in free version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Oct 7, 2022
1 parent 5b71a26 commit de1c90f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package top.learningman.push.activity

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.widget.Toast
Expand Down Expand Up @@ -49,6 +50,19 @@ class SettingsActivity : AppCompatActivity() {
}
true
}
} else {
setOnPreferenceClickListener {
Log.d("SettingsActivity", "Version Clicked")
startActivity(
Intent(
Intent.ACTION_VIEW,
Uri.parse("https://github.com/ZNotify/android/releases")
).apply {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
}
)
true
}
}
summary = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})"
}
Expand Down

0 comments on commit de1c90f

Please sign in to comment.