forked from upstream-mirrors/OpenTracks
list item, select entire item. not show markers in action bar. Message when photo marker is canceled
This commit is contained in:
@@ -44,8 +44,7 @@ limitations under the License.
|
|||||||
android:paddingRight="12dp"
|
android:paddingRight="12dp"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:shrinkColumns="1"
|
android:shrinkColumns="1"
|
||||||
android:stretchColumns="1"
|
android:stretchColumns="1" >
|
||||||
style="@style/ListItem" >
|
|
||||||
<!-- Table 1: Row 1 -->
|
<!-- Table 1: Row 1 -->
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<!-- Table 1: Row 1: Column 1: (icon) -->
|
<!-- Table 1: Row 1: Column 1: (icon) -->
|
||||||
@@ -127,4 +126,8 @@ limitations under the License.
|
|||||||
</TableRow>
|
</TableRow>
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
<View
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
style="@style/ListItem" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
@@ -43,7 +43,6 @@ limitations under the License.
|
|||||||
android:icon="@drawable/ic_menu_markers"
|
android:icon="@drawable/ic_menu_markers"
|
||||||
android:id="@+id/track_detail_markers"
|
android:id="@+id/track_detail_markers"
|
||||||
android:orderInCategory="5"
|
android:orderInCategory="5"
|
||||||
android:showAsAction="ifRoom"
|
|
||||||
android:title="@string/menu_markers"/>
|
android:title="@string/menu_markers"/>
|
||||||
<!-- android:orderInCategory="6" is in map.xml -->
|
<!-- android:orderInCategory="6" is in map.xml -->
|
||||||
<item
|
<item
|
||||||
|
|||||||
@@ -1004,6 +1004,10 @@ limitations under the License.
|
|||||||
translation_description="When adding a marker, the message indicating success.">
|
translation_description="When adding a marker, the message indicating success.">
|
||||||
A marker was inserted.
|
A marker was inserted.
|
||||||
</string>
|
</string>
|
||||||
|
<string name="marker_add_canceled"
|
||||||
|
translation_description="When adding a marker, the message indicating it is canceled.">
|
||||||
|
Canceled, no marker added.
|
||||||
|
</string>
|
||||||
<string name="marker_delete_one_confirm_message"
|
<string name="marker_delete_one_confirm_message"
|
||||||
translation_description="When deleting one marker, the confirmation message.">
|
translation_description="When deleting one marker, the confirmation message.">
|
||||||
The marker will be permanently deleted from the device.
|
The marker will be permanently deleted from the device.
|
||||||
|
|||||||
@@ -317,7 +317,10 @@ public class TrackDetailActivity extends AbstractSendToGoogleActivity
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
if (requestCode == CAMERA_REQUEST_CODE) {
|
if (requestCode == CAMERA_REQUEST_CODE) {
|
||||||
|
if (resultCode == RESULT_CANCELED) {
|
||||||
|
Toast.makeText(this, R.string.marker_add_canceled, Toast.LENGTH_LONG).show();
|
||||||
|
}
|
||||||
hasPhoto = resultCode == RESULT_OK;
|
hasPhoto = resultCode == RESULT_OK;
|
||||||
} else {
|
} else {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user