|
|
|
|
@ -16,6 +16,7 @@ import androidx.core.content.FileProvider |
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
import com.android.billingclient.api.Purchase |
|
|
|
|
import com.google.android.material.snackbar.Snackbar |
|
|
|
|
import com.google.android.play.core.review.ReviewException |
|
|
|
|
import com.google.android.play.core.review.ReviewManagerFactory |
|
|
|
|
import io.realm.Realm |
|
|
|
|
import net.pokeranalytics.android.BuildConfig |
|
|
|
|
@ -44,7 +45,12 @@ import net.pokeranalytics.android.ui.modules.datalist.DataListActivity |
|
|
|
|
import net.pokeranalytics.android.ui.modules.settings.DealtHandsPerHourActivity |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.rows.SettingsRow |
|
|
|
|
import net.pokeranalytics.android.util.* |
|
|
|
|
import net.pokeranalytics.android.util.FileUtils |
|
|
|
|
import net.pokeranalytics.android.util.Language |
|
|
|
|
import net.pokeranalytics.android.util.Preferences |
|
|
|
|
import net.pokeranalytics.android.util.StopNotificationManager |
|
|
|
|
import net.pokeranalytics.android.util.URL |
|
|
|
|
import net.pokeranalytics.android.util.UserDefaults |
|
|
|
|
import net.pokeranalytics.android.util.billing.AppGuard |
|
|
|
|
import net.pokeranalytics.android.util.billing.IAPProducts |
|
|
|
|
import net.pokeranalytics.android.util.billing.PurchaseListener |
|
|
|
|
@ -53,7 +59,7 @@ import net.pokeranalytics.android.util.extensions.dateTimeFileFormatted |
|
|
|
|
import timber.log.Timber |
|
|
|
|
import java.io.File |
|
|
|
|
import java.io.IOException |
|
|
|
|
import java.util.* |
|
|
|
|
import java.util.Date |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SettingsFragment : RealmFragment(), RowRepresentableDelegate, StaticRowRepresentableDataSource, PurchaseListener { |
|
|
|
|
@ -318,6 +324,8 @@ class SettingsFragment : RealmFragment(), RowRepresentableDelegate, StaticRowRep |
|
|
|
|
// completed |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
val exception = (task.exception as ReviewException) |
|
|
|
|
Timber.d("requestReviewFlow not successful = ${exception.message}") |
|
|
|
|
// There was some problem, continue regardless of the result. |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|