forked from upstream-mirrors/OpenTracks
Update text in "Send to Google" dialog.
This commit is contained in:
@@ -39,7 +39,6 @@ limitations under the License.
|
||||
android:layout_width="0dp" >
|
||||
<RadioButton
|
||||
android:id="@+id/choose_upload_service_new_map"
|
||||
android:text="@string/send_google_new_map"
|
||||
style="@style/TextMedium" />
|
||||
<RadioButton
|
||||
android:id="@+id/choose_upload_service_existing_map"
|
||||
@@ -54,7 +53,7 @@ limitations under the License.
|
||||
style="@style/ChooseUploadServiceImageView" />
|
||||
<CheckBox
|
||||
android:id="@+id/choose_upload_service_fusion_tables"
|
||||
android:text="@string/send_google_fusion_tables"
|
||||
android:text="@string/send_google_fusion_tables_new_public_table"
|
||||
style="@style/ChooseUploadServiceCheckBox" />
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
|
||||
@@ -1281,19 +1281,28 @@ limitations under the License.
|
||||
Use existing map
|
||||
</string>
|
||||
<string name="send_google_fusion_tables"
|
||||
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
||||
checkbox option to send to Google Fusion Tables.">
|
||||
translation_description="When sending a track to Google, the Google Fusion Tables name.">
|
||||
Google Fusion Tables
|
||||
</string>
|
||||
<string name="send_google_fusion_tables_new_public_table"
|
||||
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
||||
checkbox option to send to Google Fusion Tables as a new public table.">
|
||||
Google Fusion Tables\n(new public table)
|
||||
</string>
|
||||
<string name="send_google_maps"
|
||||
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
||||
checkbox option to send to Google Maps.">
|
||||
Google Maps
|
||||
</string>
|
||||
<string name="send_google_new_map"
|
||||
<string name="send_google_new_public_map"
|
||||
translation_description="When sending a track to Google Maps, the radio option to create a
|
||||
new map as opposed to use an existing map.">
|
||||
Create new map
|
||||
new public map as opposed to use an existing map.">
|
||||
Create new public map
|
||||
</string>
|
||||
<string name="send_google_new_unlisted_map"
|
||||
translation_description="When sending a track to Google Maps, the radio option to create a
|
||||
new unlisted map as opposed to use an existing map.">
|
||||
Create new unlisted map
|
||||
</string>
|
||||
<string name="send_google_no_account_message"
|
||||
translation_description="When sending to Google, the dialog message when no Google account is
|
||||
|
||||
@@ -36,6 +36,7 @@ limitations under the License.
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:layout_marginLeft">8dp</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:maxLines">5</item>
|
||||
</style>
|
||||
<!-- The style for choose upload service image view -->
|
||||
<style name="ChooseUploadServiceImageView">
|
||||
|
||||
+6
@@ -90,8 +90,14 @@ public class ChooseUploadServiceDialogFragment extends DialogFragment {
|
||||
});
|
||||
|
||||
mapsOptionTableRow = (TableRow) view.findViewById(R.id.choose_upload_service_maps_options);
|
||||
|
||||
RadioButton newMapRadioButton = (RadioButton) view.findViewById(
|
||||
R.id.choose_upload_service_new_map);
|
||||
boolean defaultMapPublic = PreferencesUtils.getBoolean(getActivity(),
|
||||
R.string.default_map_public_key, PreferencesUtils.DEFAULT_MAP_PUBLIC_DEFAULT);
|
||||
newMapRadioButton.setText(defaultMapPublic ? R.string.send_google_new_public_map
|
||||
: R.string.send_google_new_unlisted_map);
|
||||
|
||||
existingMapRadioButton = (RadioButton) view.findViewById(
|
||||
R.id.choose_upload_service_existing_map);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user