|
|
|
|
@ -20,7 +20,8 @@ import net.pokeranalytics.android.ui.adapter.StaticRowRepresentableDataSource |
|
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SettingRow |
|
|
|
|
import net.pokeranalytics.android.util.* |
|
|
|
|
import net.pokeranalytics.android.util.Preferences |
|
|
|
|
import net.pokeranalytics.android.util.URL |
|
|
|
|
import net.pokeranalytics.android.util.extensions.openContactMail |
|
|
|
|
import net.pokeranalytics.android.util.extensions.openPlayStorePage |
|
|
|
|
import net.pokeranalytics.android.util.extensions.openUrl |
|
|
|
|
@ -89,11 +90,7 @@ class SettingsFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, Sta |
|
|
|
|
SettingRow.RATE_APP -> parentActivity.openPlayStorePage() |
|
|
|
|
SettingRow.CONTACT_US -> parentActivity.openContactMail(R.string.contact) |
|
|
|
|
SettingRow.BUG_REPORT -> parentActivity.openContactMail(R.string.bug_report_subject) |
|
|
|
|
SettingRow.CURRENCY -> { |
|
|
|
|
val intent = Intent(context, CurrenciesActivity::class.java) |
|
|
|
|
this.startActivityForResult(intent, SettingsFragment.REQUEST_CODE_CURRENCY) |
|
|
|
|
// CurrenciesActivity.newInstance(requireContext()) |
|
|
|
|
} |
|
|
|
|
SettingRow.CURRENCY -> CurrenciesActivity.newInstanceForResult(this@SettingsFragment, SettingsFragment.REQUEST_CODE_CURRENCY) |
|
|
|
|
SettingRow.FOLLOW_US -> { |
|
|
|
|
when (position) { |
|
|
|
|
0 -> parentActivity.openUrl(URL.BLOG.value) |
|
|
|
|
|