mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
Update IapGooglePlay.java
This commit is contained in:
parent
497d0dee1e
commit
4c78f9e28d
@ -71,17 +71,12 @@ public class IapGooglePlay implements PurchasesUpdatedListener {
|
|||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
Log.d(TAG, "stop()");
|
Log.d(TAG, "stop()");
|
||||||
this.activity.runOnUiThread(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
if (billingClient.isReady()) {
|
if (billingClient.isReady()) {
|
||||||
billingClient.endConnection();
|
billingClient.endConnection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toISO8601(final Date date) {
|
private String toISO8601(final Date date) {
|
||||||
String formatted = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(date);
|
String formatted = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(date);
|
||||||
return formatted.substring(0, 22) + ":" + formatted.substring(22);
|
return formatted.substring(0, 22) + ":" + formatted.substring(22);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user