|
|
|
|
@ -12,6 +12,7 @@ import kotlinx.android.synthetic.main.fragment_settings.* |
|
|
|
|
import net.pokeranalytics.android.BuildConfig |
|
|
|
|
import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
|
import net.pokeranalytics.android.ui.activity.BillingActivity |
|
|
|
|
import net.pokeranalytics.android.ui.activity.CurrenciesActivity |
|
|
|
|
import net.pokeranalytics.android.ui.activity.DataListActivity |
|
|
|
|
import net.pokeranalytics.android.ui.activity.GDPRActivity |
|
|
|
|
@ -100,6 +101,11 @@ class SettingsFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, Sta |
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
|
when (row) { |
|
|
|
|
SettingRow.SUBSCRIPTION -> { |
|
|
|
|
if (!AppGuard.isProUser) { |
|
|
|
|
BillingActivity.newInstance(requireContext()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
SettingRow.RATE_APP -> parentActivity.openPlayStorePage() |
|
|
|
|
SettingRow.CONTACT_US -> parentActivity.openContactMail(R.string.contact) |
|
|
|
|
SettingRow.BUG_REPORT -> parentActivity.openContactMail(R.string.bug_report_subject, Realm.getDefaultInstance().path) |
|
|
|
|
|