Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/ActivityMain.java
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | public boolean onOptionsItemSelected(MenuItem item) { | ||||
openIceweasel(res.getString(R.string.hack_url)); | openIceweasel(res.getString(R.string.hack_url)); | ||||
return true; | return true; | ||||
case R.id.action_source: | case R.id.action_source: | ||||
openIceweasel("https://gitpull.it/source/libre-busto/"); | openIceweasel("https://gitpull.it/source/libre-busto/"); | ||||
return true; | return true; | ||||
case R.id.action_licence: | case R.id.action_licence: | ||||
openIceweasel("https://www.gnu.org/licenses/gpl-3.0.html"); | openIceweasel("https://www.gnu.org/licenses/gpl-3.0.html"); | ||||
return true; | return true; | ||||
case R.id.action_donate: | |||||
openIceweasel("https://www.liberapay.com/Libre_BusTO/"); | |||||
return true; | |||||
case R.id.action_settings: | case R.id.action_settings: | ||||
Log.d("MAINBusTO", "Pressed button preferences"); | Log.d("MAINBusTO", "Pressed button preferences"); | ||||
startActivity(new Intent(ActivityMain.this, ActivitySettings.class)); | startActivity(new Intent(ActivityMain.this, ActivitySettings.class)); | ||||
return true; | return true; | ||||
case R.id.action_experiments: | case R.id.action_experiments: | ||||
startActivity(new Intent(this, ActivityPrincipal.class)); | startActivity(new Intent(this, ActivityPrincipal.class)); | ||||
} | } | ||||
return super.onOptionsItemSelected(item); | return super.onOptionsItemSelected(item); | ||||
▲ Show 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | public static String getBusStopIDFromUri(Uri uri) { | ||||
default: | default: | ||||
Log.e("ActivityMain", "Unexpected intent URL: " + uri); | Log.e("ActivityMain", "Unexpected intent URL: " + uri); | ||||
busStopID = null; | busStopID = null; | ||||
} | } | ||||
return busStopID; | return busStopID; | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register