Permalink
Browse files

Voice Dial button now present on DisplayReminder

ForgetMeNot v0.5.0 (versionCode 30, DB v2)

*IMPROVEMENTS*
- FMN-19 DisplayReminder now shows a huge voicedial button

*FILE DETAILS*

* AndroidManifest.xml
- Update version

* res/layout/display_reminder.xml
- Add voicedial button
- Move other things around to make room for it

* src/com/dunnzilla/mobile/AndroidReminderUtils.java
- Fix: Starting the dialer from outside an activity requires the Intent to have FLAG_ACTIVITY_NEW_TASK

* src/com/dunnzilla/mobile/DisplayReminder.java
- Add OnClickListener for the voice dial button
  • Loading branch information...
1 parent f7226a9 commit 4f8265ab81b3abb018604e9cdc98ae213e90d796 @Dunnzilla committed Apr 12, 2012
View
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dunnzilla.mobile"
- android:versionName="0.4.21" android:versionCode="29">
+ android:versionName="0.5.0" android:versionCode="30">
<uses-sdk android:minSdkVersion="7" />
<!-- To let you pick a contact: -->
View
Binary file not shown.
View
@@ -1,6 +1,29 @@
--------------------------------------------------------------------------
DisplayReminder and About page improvements
+ForgetMeNot v0.5.0 (versionCode 30, DB v2)
+
+*IMPROVEMENTS*
+- FMN-19 DisplayReminder now shows a huge voicedial button
+
+*FILE DETAILS*
+
+* AndroidManifest.xml
+- Update version
+
+* res/layout/display_reminder.xml
+- Add voicedial button
+- Move other things around to make room for it
+
+* src/com/dunnzilla/mobile/AndroidReminderUtils.java
+- Fix: Starting the dialer from outside an activity requires the Intent to have FLAG_ACTIVITY_NEW_TASK
+
+* src/com/dunnzilla/mobile/DisplayReminder.java
+- Add OnClickListener for the voice dial button
+
+--------------------------------------------------------------------------
+DisplayReminder and About page improvements
+
ForgetMeNot v0.4.21 (versionCode 29, DB v2)
*IMPROVEMENTS*
@@ -8,6 +8,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
android:orientation="vertical" >
<ImageButton
@@ -76,12 +77,24 @@
android:text="@string/vr_default_note"
android:textColor="#DDDDDD"
android:textSize="15dip" />
+ <ImageView
+ android:id="@+id/vr_voicedial"
+ android:layout_width="128dp"
+ android:layout_height="128dp"
+ android:layout_below="@id/vr_text_note"
+ android:contentDescription="@string/disprem_text_activate_inactive"
+ android:layout_gravity="center_horizontal"
+ android:layout_centerHorizontal="true"
+ android:src="@drawable/ic_launcher_voicedial"
+ />
+
+
<Button
android:id="@+id/disprem_btn_done"
android:layout_width="120dp"
android:layout_height="wrap_content"
- android:layout_below="@id/vr_text_note"
+ android:layout_below="@id/vr_voicedial"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
@@ -92,7 +105,7 @@
android:id="@+id/disprem_btn_snooze"
android:layout_width="120dp"
android:layout_height="wrap_content"
- android:layout_below="@id/vr_text_note"
+ android:layout_below="@id/vr_voicedial"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
@@ -171,7 +184,7 @@
android:text=""
android:textColor="#DDDDDD"
android:textSize="15dip" />
-
+
</RelativeLayout>
</ScrollView>
@@ -71,7 +71,8 @@ public void onClick(DialogInterface dialog,
uri = Uri.parse("tel://" + arPhones.get(0));
}
- Intent callIntent = new Intent(Intent.ACTION_CALL, uri);
+ Intent callIntent = new Intent(Intent.ACTION_CALL, uri);
+ callIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
contextParent.startActivity(callIntent);
}
};
@@ -1,6 +1,7 @@
package com.dunnzilla.mobile;
import android.app.Activity;
+import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
@@ -35,7 +36,7 @@ public void onCreate(Bundle savedInstanceState) {
if(reminder == null) {
return;
}
- getApplicationContext();
+ Context context = getApplicationContext();
View.OnClickListener vocl_openContact = new View.OnClickListener() {
@Override
@@ -49,9 +50,14 @@ public void onClick(View v) {
ImageView ivContactIcon = (ImageView) findViewById(R.id.vr_contact_icon);
TextView tvName = (TextView) findViewById(R.id.vr_text_who);
+ ImageView ivDoVoiceDial = (ImageView) findViewById(R.id.vr_voicedial);
ivContactIcon.setOnClickListener( vocl_openContact );
tvName.setOnClickListener( vocl_openContact );
+
+ ivDoVoiceDial.setTag(R.string.TAG_ID_ReminderAdapter_Reminder, reminder);
+ ivDoVoiceDial.setTag(R.string.TAG_ID_ReminderAdapter_Context, context);
+ ivDoVoiceDial.setOnClickListener( AndroidReminderUtils.genOnClickDoVoiceDial() );
// TODO handle no reminder ID passed in, or an invalid reminder ID
Button bCreate = (Button) findViewById(R.id.disprem_btn_done);

0 comments on commit 4f8265a

Please sign in to comment.