Update IapGooglePlay.java

This commit is contained in:
Björn Ritzl 2020-07-28 08:31:09 +02:00
parent 497d0dee1e
commit 4c78f9e28d

View File

@ -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() { if (billingClient.isReady()) {
@Override billingClient.endConnection();
public void run() { }
if (billingClient.isReady()) {
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);
} }