diff --git a/README.md b/README.md index 0936a5ce..99480ad5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ Connecting things to your VPN made simple. Share your VPN connection over hotspot or repeater. (**root required**) , -sign up for beta +sign up for beta at Google Play +or Firebase This app is useful for: diff --git a/mobile/src/main/java/be/mygod/librootkotlinx/Utils.kt b/mobile/src/main/java/be/mygod/librootkotlinx/Utils.kt index 290043d2..ee8c1a60 100644 --- a/mobile/src/main/java/be/mygod/librootkotlinx/Utils.kt +++ b/mobile/src/main/java/be/mygod/librootkotlinx/Utils.kt @@ -12,6 +12,7 @@ import android.util.* import androidx.annotation.RequiresApi import kotlinx.parcelize.Parcelize import java.io.IOException +import java.util.* class NoShellException(cause: Throwable) : Exception("Root missing", cause) @@ -252,4 +253,5 @@ inline fun ByteArray.toParcelable(classLoader: ClassLoa } // Stream closed caused in NullOutputStream -val IOException.isEBADF get() = message == "Stream closed" || (cause as? ErrnoException)?.errno == OsConstants.EBADF +val IOException.isEBADF get() = (cause as? ErrnoException)?.errno == OsConstants.EBADF || + message?.lowercase(Locale.ENGLISH) == "stream closed" diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/preference/UpstreamsPreference.kt b/mobile/src/main/java/be/mygod/vpnhotspot/preference/UpstreamsPreference.kt index bc6e7fec..d826d161 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/preference/UpstreamsPreference.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/preference/UpstreamsPreference.kt @@ -60,6 +60,7 @@ class UpstreamsPreference(context: Context, attrs: AttributeSet) : Preference(co init { (context as LifecycleOwner).lifecycle.addObserver(this) + onUpdate() } override fun onStart(owner: LifecycleOwner) { diff --git a/mobile/src/main/res/layout/fragment_ebeg.xml b/mobile/src/main/res/layout/fragment_ebeg.xml index deb5090a..1a632d07 100644 --- a/mobile/src/main/res/layout/fragment_ebeg.xml +++ b/mobile/src/main/res/layout/fragment_ebeg.xml @@ -65,6 +65,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" + android:minHeight="@dimen/touch_target_min" android:text="@string/donations__google_android_market_donate_button" />