File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/me/kyuubiran/akinatorhelper Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11package me.kyuubiran.akinatorhelper.util
22
3+ import android.content.Context
34import android.content.Intent
45import android.net.Uri
5- import com.github.kyuubiran.ezxhelper.init.InitFields.appContext
66
7- fun openUrl (url : String ) {
8- appContext .startActivity(Intent (Intent .ACTION_VIEW , Uri .parse(url)))
7+ fun Context. openUrl (url : String ) {
8+ this .startActivity(Intent (Intent .ACTION_VIEW , Uri .parse(url)))
99}
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ class SettingDialog(activity: Activity) : AlertDialog.Builder(activity) {
152152 )
153153 }
154154 " goto_github" -> {
155- openUrl(" https://github.com/KyuubiRan/AkinatorHelper" )
155+ this .activity. openUrl(" https://github.com/KyuubiRan/AkinatorHelper" )
156156 }
157157 }
158158 return true
You can’t perform that action at this time.
0 commit comments