Skip to content

Commit

Permalink
Remove unnecessary field
Browse files Browse the repository at this point in the history
  • Loading branch information
pluscubed committed Nov 29, 2017
1 parent c9ea89d commit 0f9e680
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import butterknife.BindView;
import butterknife.ButterKnife;
Expand Down Expand Up @@ -167,7 +169,6 @@ public class SettingsActivity extends AppCompatActivity {

private NotificationManager notificationManager;
private BillingManager billingManager;
private List<String> purchased;

@Override
protected void onDestroy() {
Expand Down Expand Up @@ -424,7 +425,6 @@ public void onNothingSelected(AdapterView<?> parent) {
showChangelog();
}

purchased = new ArrayList<>();
billingManager = new BillingManager(this, new BillingManager.BillingUpdatesListener() {
@Override
public void onBillingClientSetupFinished() {
Expand Down Expand Up @@ -455,7 +455,7 @@ public void onConsumeFinished(String token, int result) {

@Override
public void onPurchasesUpdated(List<Purchase> purchases) {
purchased.clear();
Set<String> purchased = new HashSet<>();

for (Purchase purchase : purchases) {
purchased.add(purchase.getSku());
Expand Down

0 comments on commit 0f9e680

Please sign in to comment.