Skip to content

Commit 8cb6252

Browse files
author
Robot Media
committed
Refactoring and minor javadoc clarifications
1 parent 8a2c3ee commit 8cb6252

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

AndroidBillingLibrary/src/net/robotmedia/billing/BillingController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ private static final void addManualConfirmation(String itemId, String notificati
105105
}
106106

107107
/**
108-
* Returns the billing status. If it is currently unknown, requests to check
109-
* the billing status, in which case observers should eventually receive a
110-
* {@link IBillingObserver#onBillingChecked(boolean)} notification.
108+
* Returns the billing status. If it is currently unknown, checks the billing
109+
* status asynchronously, in which case observers will eventually receive
110+
* a {@link IBillingObserver#onBillingChecked(boolean)} notification.
111111
*
112112
* @param context
113113
* @return the current billing status (unknown, supported or unsupported).

AndroidBillingLibrary/src/net/robotmedia/billing/IBillingObserver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public interface IBillingObserver {
2323

2424
/**
25-
* Called after checking if in-app billing is supported or not.
25+
* Called only once after determining if in-app billing is supported or not.
2626
*
2727
* @param supported
2828
* if true, in-app billing is supported. Otherwise, it isn't.
@@ -65,7 +65,7 @@ public interface IBillingObserver {
6565
public void onRequestPurchaseResponse(String itemId, ResponseCode response);
6666

6767
/**
68-
* Called after a restore transactions request has been successfully
68+
* Called when a restore transactions request has been successfully
6969
* received by the server.
7070
*/
7171
public void onTransactionsRestored();

AndroidBillingLibraryTest/src/net/robotmedia/billing/AbstractBillingActivityTest.java renamed to AndroidBillingLibraryTest/src/net/robotmedia/billing/helper/AbstractBillingActivityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16-
package net.robotmedia.billing;
16+
package net.robotmedia.billing.helper;
1717

1818
import android.test.ActivityInstrumentationTestCase2;
1919
import android.test.suitebuilder.annotation.MediumTest;

AndroidBillingLibraryTest/src/net/robotmedia/billing/MockBillingActivity.java renamed to AndroidBillingLibraryTest/src/net/robotmedia/billing/helper/MockBillingActivity.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16-
package net.robotmedia.billing;
16+
package net.robotmedia.billing.helper;
1717

1818
import net.robotmedia.billing.model.Transaction.PurchaseState;
1919
import net.robotmedia.billing.request.ResponseCode;
@@ -38,11 +38,6 @@ public String getPublicKey() {
3838
return null;
3939
}
4040

41-
@Override
42-
public void onTransactionsRestored() {
43-
// TODO Auto-generated method stub
44-
}
45-
4641
@Override
4742
public void onRequestPurchaseResponse(String itemId, ResponseCode response) {
4843
// TODO Auto-generated method stub

DungeonsRedux/src/net/robotmedia/billing/example/auxiliary/CatalogAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
import net.robotmedia.billing.example.aux.CatalogEntry.Managed;
6+
import net.robotmedia.billing.example.auxiliary.CatalogEntry.Managed;
77

88
import android.content.Context;
99
import android.view.View;

0 commit comments

Comments
 (0)