This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by FernFlower decompiler) | |
// | |
package com.backbase.android.client.transactions.dto; | |
import android.os.Parcel; | |
import android.os.Parcelable.Creator; | |
import androidx.annotation.NonNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by FernFlower decompiler) | |
// | |
package com.backbase.android.client.transactions.dto; | |
import android.os.Parcel; | |
import android.os.Parcelable.Creator; | |
import androidx.annotation.VisibleForTesting; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
companion object{ | |
fun create(activity: FragmentActivity): ProductViewModel{ | |
var productDetailViewModel = ViewModelProviders.of(activity).get(ProductViewModel::class.java) | |
return productDetailViewModel | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onResume() { | |
super.onResume() | |
if (checkPlayServices()) { | |
startApp() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private var errorDialog: Dialog? = null | |
private fun checkGooglePlayServices(): Boolean { | |
val googleApiAvailability: GoogleApiAvailability = GoogleApiAvailability.getInstance() | |
val resultCode: Int = googleApiAvailability.isGooglePlayServicesAvailable(this) | |
if (resultCode != ConnectionResult.SUCCESS) { | |
if (googleApiAvailability.isUserResolvableError(resultCode)) { | |
if (errorDialog == null) { | |
errorDialog = googleApiAvailability.getErrorDialog(this, resultCode, 2404) | |
errorDialog?.setCancelable(false) |