summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/fragments
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
committerArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
commite86a9a41d289e107bf235baaac766c109f23a5c6 (patch)
tree5f0ada023813fceb18d4d48068954eaac420a0a5 /src/de/blinkt/openvpn/fragments
parent22b741e9a140eb70ea1772c1b6a43ef2ff3e1512 (diff)
Fix a few market console errors
Diffstat (limited to 'src/de/blinkt/openvpn/fragments')
-rw-r--r--src/de/blinkt/openvpn/fragments/AboutFragment.java21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/de/blinkt/openvpn/fragments/AboutFragment.java b/src/de/blinkt/openvpn/fragments/AboutFragment.java
index ce57afda..c4f27ee1 100644
--- a/src/de/blinkt/openvpn/fragments/AboutFragment.java
+++ b/src/de/blinkt/openvpn/fragments/AboutFragment.java
@@ -111,13 +111,15 @@ public class AboutFragment extends Fragment implements View.OnClickListener {
final ArrayList<String> responseList = skuDetails.getStringArrayList("DETAILS_LIST");
- getActivity().runOnUiThread(new Runnable() {
- @Override
- public void run() {
- createPlayBuyOptions(ownedSkus, responseList);
-
- }
- });
+ if (getActivity() != null) {
+ getActivity().runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ createPlayBuyOptions(ownedSkus, responseList);
+
+ }
+ });
+ }
} catch (RemoteException e) {
e.printStackTrace();
@@ -274,6 +276,11 @@ public class AboutFragment extends Fragment implements View.OnClickListener {
}
+ @Override
+ public void onActivityCreated(Bundle savedInstanceState) {
+ if (mService!=null)
+ initGooglePlayDonation();
+ }
@Override
public void onClick(View v) {