list item, select entire item. not show markers in action bar. Message when photo marker is canceled

This commit is contained in:
Jimmy Shih
2013-11-22 10:37:20 -08:00
parent 76c06f68fb
commit 74713239fb
4 changed files with 13 additions and 4 deletions
+5 -2
View File
@@ -44,8 +44,7 @@ limitations under the License.
android:paddingRight="12dp"
android:paddingTop="8dp"
android:shrinkColumns="1"
android:stretchColumns="1"
style="@style/ListItem" >
android:stretchColumns="1" >
<!-- Table 1: Row 1 -->
<TableRow>
<!-- Table 1: Row 1: Column 1: (icon) -->
@@ -127,4 +126,8 @@ limitations under the License.
</TableRow>
</TableLayout>
</FrameLayout>
<View
android:layout_height="match_parent"
android:layout_width="match_parent"
style="@style/ListItem" />
</FrameLayout>
-1
View File
@@ -43,7 +43,6 @@ limitations under the License.
android:icon="@drawable/ic_menu_markers"
android:id="@+id/track_detail_markers"
android:orderInCategory="5"
android:showAsAction="ifRoom"
android:title="@string/menu_markers"/>
<!-- android:orderInCategory="6" is in map.xml -->
<item
+4
View File
@@ -1004,6 +1004,10 @@ limitations under the License.
translation_description="When adding a marker, the message indicating success.">
A marker was inserted.
</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"
translation_description="When deleting one marker, the confirmation message.">
The marker will be permanently deleted from the device.
@@ -317,7 +317,10 @@ public class TrackDetailActivity extends AbstractSendToGoogleActivity
@Override
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;
} else {
super.onActivityResult(requestCode, resultCode, data);