Skip to content

Commit

Permalink
Use HTTPS everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfds committed Jun 13, 2021
1 parent 637ae59 commit 02c2d72
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
public class BikeNetworksListActivity extends Activity {
private static final String TAG = BikeNetworksListActivity.class.getSimpleName();

private static final String DEFAULT_API_URL = "http://api.citybik.es/v2/";
private static final String DEFAULT_API_URL = "https://api.citybik.es/v2/";
private static final String PREF_KEY_API_URL = "pref_api_url";
private static final String PREF_KEY_NETWORK_ID = "network-id";
private static final String PREF_KEY_NETWORK_NAME = "network-name";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
public class StationsListActivity extends FragmentActivity implements ActionBar.TabListener, ActivityCompat.OnRequestPermissionsResultCallback {
private static final String TAG = StationsListActivity.class.getSimpleName();

private static final String DEFAULT_API_URL = "http://api.citybik.es/v2/";
private static final String DEFAULT_API_URL = "https://api.citybik.es/v2/";
private static final String PREF_KEY_API_URL = "pref_api_url";
private static final String PREF_KEY_NETWORK_ID = "network-id";
private static final String PREF_KEY_NETWORK_LATITUDE = "network-latitude";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
public class StationsListAppWidgetProvider extends AppWidgetProvider {
private static final String TAG = StationsListAppWidgetProvider.class.getSimpleName();

private static final String BASE_URL = "http://api.citybik.es/v2/networks";
private static final String BASE_URL = "https://api.citybik.es/v2/networks";
private static final String PREF_KEY_NETWORK_ID = "network-id";
private static final String PREF_KEY_DB_LAST_UPDATE = "db_last_update";

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/xml/pref_general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<EditTextPreference
android:key="pref_api_url"
android:title="@string/pref_title_api_url"
android:defaultValue="http://api.citybik.es/v2/" />
android:defaultValue="https://api.citybik.es/v2/" />

<CheckBoxPreference
android:key="pref_strip_id_station"
Expand Down Expand Up @@ -84,11 +84,11 @@
android:title="@string/pref_title_license" />

<Preference
android:summary="http://api.citybik.es/v2/"
android:summary="https://api.citybik.es/v2/"
android:title="@string/pref_title_citybikes_api">
<intent
android:action="android.intent.action.VIEW"
android:data="http://api.citybik.es/v2/" />
android:data="https://api.citybik.es/v2/" />
</Preference>

<Preference
Expand Down

0 comments on commit 02c2d72

Please sign in to comment.