Adding a bit of margin around the bubbles, a new preference for default reminders, and reverted the list colors to blues

pull/14/head
Tim Su 16 years ago
parent 6293161863
commit c5b92dcd94

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid"
android:versionCode="45"
android:versionName="1.11.1">
android:versionCode="46"
android:versionName="1.11.2">
<meta-data android:name="com.a0soft.gphone.aTrackDog.webURL"
android:value="http://www.weloveastrid.com" />

@ -83,8 +83,9 @@
<ImageView android:id="@+id/imageRight"
android:gravity="center_vertical"
android:layout_width="26px"
android:layout_width="24px"
android:layout_height="fill_parent"
android:paddingLeft="12dip"/>
android:paddingLeft="6dip"
android:paddingRight="4dip"/>
</LinearLayout>

@ -23,10 +23,10 @@
<color name="task_list_overdue">#FFFB6666</color>
<color name="task_list_normal">#FFFFFFFF</color>
<color name="task_list_done">#ff777777</color>
<color name="task_list_importance_1">#ffFF8281</color>
<color name="task_list_importance_2">#ffF7F1BD</color>
<color name="task_list_importance_3">#ff597AFF</color>
<color name="task_list_importance_4">#ffB4B4B4</color>
<color name="task_list_importance_1">#ffffffff</color>
<color name="task_list_importance_2">#ffc0c4dc</color>
<color name="task_list_importance_3">#ff7381c8</color>
<color name="task_list_importance_4">#ff446592</color>
<color name="taskList_dueDateOverdue">#FFFB6666</color>
<color name="taskList_dueDate">#ffF0E89E</color>

@ -223,6 +223,7 @@ If you don\'t want to see the new task right after you complete the old one, you
<string name="p_notif_quietStart">notif_qstart</string>
<string name="p_notif_quietEnd">notif_qend</string>
<string name="p_notif_annoy">notif_annoy</string>
<string name="p_notif_defaultRemind">notif_default_reminder</string>
<string name="key_notification_ringtone">notification_ringtone</string>
<string name="p_fontSize">font_size</string>
<string name="p_deadlineTime">deadline_time</string>
@ -233,8 +234,10 @@ If you don\'t want to see the new task right after you complete the old one, you
<string name="prefs_quietStart_desc">Starting hour when Astrid should be quiet (e.g. 22)</string>
<string name="prefs_quietEnd_title">Quiet Hours End</string>
<string name="prefs_quietEnd_desc">Ending hour when Astrid should be quiet (e.g. 08)</string>
<string name="prefs_annoy_title">Persistence Mode</string>
<string name="prefs_annoy_desc">If checked, Astrid will try a bit harder to get your attention</string>
<string name="prefs_defaultRemind_title">Default Reminders</string>
<string name="prefs_defaultRemind_desc">For new tasks, in days (i.e. 7). Blank to disable</string>
<string name="prefs_annoy_title">Persistent Mode</string>
<string name="prefs_annoy_desc">If checked, you must view reminders before clearing them</string>
<string name="prefs_notification_title">Notification Ringtone</string>
<string name="prefs_notification_desc">Choose how Astrid alerts you!</string>

@ -16,6 +16,10 @@
android:key="@string/p_notif_annoy"
android:title="@string/prefs_annoy_title"
android:summary="@string/prefs_annoy_desc" />
<EditTextPreference
android:key="@string/p_notif_defaultRemind"
android:title="@string/prefs_defaultRemind_title"
android:summary="@string/prefs_defaultRemind_desc" />
<RingtonePreference
android:key="@string/key_notification_ringtone"
android:title="@string/prefs_notification_title"

@ -151,7 +151,7 @@ public class TaskEdit extends TaskModificationTabbedActivity<TaskModelForEdit> {
TabWidget tabWidget = tabHost.getTabWidget();
for(int i = 0; i < tabWidget.getChildCount(); i++) {
RelativeLayout tab = (RelativeLayout)tabWidget.getChildAt(i);
tab.getLayoutParams().height = 44;
tab.getLayoutParams().height = 46;
}
setUpUIComponents();
@ -191,6 +191,11 @@ public class TaskEdit extends TaskModificationTabbedActivity<TaskModelForEdit> {
notification.setTimeDuration(model.getNotificationIntervalSeconds());
flags.setValue(model.getNotificationFlags());
notes.setText(model.getNotes());
if(model.getTaskIdentifier() == null) {
Integer reminder = Preferences.getDefaultReminder(this);
if(reminder != null)
notification.setTimeDuration(24*3600*reminder);
}
// tags
tags = tagController.getAllTags(this);

@ -112,6 +112,11 @@ public class Preferences {
R.string.p_colorize), DEFAULT_COLORIZE);
}
/** Return # of days to remind by default */
public static Integer getDefaultReminder(Context context) {
return getIntegerValue(context, R.string.p_notif_defaultRemind);
}
// --- helper methods
private static SharedPreferences getPrefs(Context context) {

Loading…
Cancel
Save