v0.8.2c: added reviews to the structure of update services
This commit is contained in:
+14
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user