v0.8.2c: added reviews to the structure of update services

This commit is contained in:
Evan Debenham
2020-08-19 20:45:03 -04:00
parent 210c96c02c
commit 2675901bea
4 changed files with 33 additions and 0 deletions
@@ -22,6 +22,7 @@
package com.shatteredpixel.shatteredpixeldungeon.services.updates;
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
import com.watabou.utils.Callback;
import java.util.Date;
@@ -92,4 +93,17 @@ public class Updates {
}
}
public static void launchReview(Callback callback){
if (supportsUpdates()){
service.initializeReview(new UpdateService.ReviewResultCallback() {
@Override
public void onComplete() {
callback.call();
}
});
} else {
callback.call();
}
}
}