mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix logic error when direct internet access is available
This commit is contained in:
committed by
Arjan Schrijver
parent
e502341409
commit
f60684e87a
+1
-1
@@ -662,7 +662,7 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
||||
} else if (itemId == R.id.appmanager_app_openinstore) {
|
||||
boolean appStoreAllowed = GBApplication.getPrefs().getBoolean("pref_key_internethelper_allow_pebble_appstore", false);
|
||||
final String url = "https://apps.rebble.io/en_US/search/" + ((selectedApp.getType() == GBDeviceApp.Type.WATCHFACE) ? "watchfaces" : "watchapps") + "/1/?native=true&query=" + Uri.encode(selectedApp.getUUID().toString());
|
||||
if (appStoreAllowed && GBApplication.hasInternetAccess()) {
|
||||
if (GBApplication.hasDirectInternetAccess() || (appStoreAllowed && InternetHelperSingleton.INSTANCE.ensureInternetHelperBound())) {
|
||||
final Intent startIntent = new Intent(getContext().getApplicationContext(), RebbleAppStoreActivity.class);
|
||||
startIntent.putExtra(DeviceService.EXTRA_URI, url);
|
||||
startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice);
|
||||
|
||||
Reference in New Issue
Block a user