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" >
|
android:layout_width="0dp" >
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/choose_upload_service_new_map"
|
android:id="@+id/choose_upload_service_new_map"
|
||||||
android:text="@string/send_google_new_map"
|
|
||||||
style="@style/TextMedium" />
|
style="@style/TextMedium" />
|
||||||
<RadioButton
|
<RadioButton
|
||||||
android:id="@+id/choose_upload_service_existing_map"
|
android:id="@+id/choose_upload_service_existing_map"
|
||||||
@@ -54,7 +53,7 @@ limitations under the License.
|
|||||||
style="@style/ChooseUploadServiceImageView" />
|
style="@style/ChooseUploadServiceImageView" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/choose_upload_service_fusion_tables"
|
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" />
|
style="@style/ChooseUploadServiceCheckBox" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
|
|||||||
@@ -1281,19 +1281,28 @@ limitations under the License.
|
|||||||
Use existing map
|
Use existing map
|
||||||
</string>
|
</string>
|
||||||
<string name="send_google_fusion_tables"
|
<string name="send_google_fusion_tables"
|
||||||
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
translation_description="When sending a track to Google, the Google Fusion Tables name.">
|
||||||
checkbox option to send to Google Fusion Tables.">
|
|
||||||
Google Fusion Tables
|
Google Fusion Tables
|
||||||
</string>
|
</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"
|
<string name="send_google_maps"
|
||||||
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
translation_description="When sending a track to Google, under the 'Send to...' dialog, the
|
||||||
checkbox option to send to Google Maps.">
|
checkbox option to send to Google Maps.">
|
||||||
Google Maps
|
Google Maps
|
||||||
</string>
|
</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
|
translation_description="When sending a track to Google Maps, the radio option to create a
|
||||||
new map as opposed to use an existing map.">
|
new public map as opposed to use an existing map.">
|
||||||
Create new 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>
|
||||||
<string name="send_google_no_account_message"
|
<string name="send_google_no_account_message"
|
||||||
translation_description="When sending to Google, the dialog message when no Google account is
|
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_gravity">center_vertical</item>
|
||||||
<item name="android:layout_marginLeft">8dp</item>
|
<item name="android:layout_marginLeft">8dp</item>
|
||||||
<item name="android:layout_width">0dp</item>
|
<item name="android:layout_width">0dp</item>
|
||||||
|
<item name="android:maxLines">5</item>
|
||||||
</style>
|
</style>
|
||||||
<!-- The style for choose upload service image view -->
|
<!-- The style for choose upload service image view -->
|
||||||
<style name="ChooseUploadServiceImageView">
|
<style name="ChooseUploadServiceImageView">
|
||||||
|
|||||||
+6
@@ -90,8 +90,14 @@ public class ChooseUploadServiceDialogFragment extends DialogFragment {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mapsOptionTableRow = (TableRow) view.findViewById(R.id.choose_upload_service_maps_options);
|
mapsOptionTableRow = (TableRow) view.findViewById(R.id.choose_upload_service_maps_options);
|
||||||
|
|
||||||
RadioButton newMapRadioButton = (RadioButton) view.findViewById(
|
RadioButton newMapRadioButton = (RadioButton) view.findViewById(
|
||||||
R.id.choose_upload_service_new_map);
|
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(
|
existingMapRadioButton = (RadioButton) view.findViewById(
|
||||||
R.id.choose_upload_service_existing_map);
|
R.id.choose_upload_service_existing_map);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user