diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-06-24 13:54:21 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-06-24 13:54:21 +0200 |
commit | c77beedb6f53043840a89c73bc996cb357a47c96 (patch) | |
tree | 0cd8f8acc196afb9c7570f3667354402f04071c5 /main | |
parent | 17b105073df31b250a80cfabe872a063cab5decc (diff) |
Fix nasty bug in AboutFragment
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java b/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java index d8e2f235..13d81e6b 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/AboutFragment.java @@ -2,7 +2,10 @@ package de.blinkt.openvpn.fragments; import android.app.Fragment; import android.app.PendingIntent; -import android.content.*; +import android.content.ComponentName; +import android.content.Intent; +import android.content.IntentSender; +import android.content.ServiceConnection; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; @@ -11,7 +14,6 @@ import android.os.RemoteException; import android.text.Html; import android.text.SpannableString; import android.text.Spanned; -import android.text.TextUtils; import android.text.method.LinkMovementMethod; import android.text.style.ClickableSpan; import android.util.Log; @@ -21,13 +23,21 @@ import android.view.View; import android.view.ViewGroup; import android.webkit.WebView; import android.widget.TextView; + import com.android.vending.billing.IInAppBillingService; -import de.blinkt.openvpn.R; -import de.blinkt.openvpn.core.VpnStatus; + import org.json.JSONException; import org.json.JSONObject; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.Hashtable; +import java.util.Locale; +import java.util.Vector; + +import de.blinkt.openvpn.R; +import de.blinkt.openvpn.core.VpnStatus; public class AboutFragment extends Fragment implements View.OnClickListener { @@ -79,7 +89,7 @@ public class AboutFragment extends Fragment implements View.OnClickListener { @Override public void onDestroy() { super.onDestroy(); - if (mServiceConn != null) { + if (mService != null) { getActivity().unbindService(mServiceConn); } |