Added some padding to the edit pages, added the suppress dialog sync option, changed a label.

pull/14/head
Tim Su 17 years ago
parent cc397209bb
commit 91cc629273

@ -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="68"
android:versionName="2.1.0">
android:versionCode="69"
android:versionName="2.1.1">
<meta-data android:name="com.a0soft.gphone.aTrackDog.webURL"
android:value="http://www.weloveastrid.com" />
@ -22,7 +22,9 @@
</intent-filter>
</activity>
<activity android:name=".activities.TaskView"/>
<activity android:name=".activities.TaskView">
android:theme="@android:style/Theme.Dialog"
</activity>
<activity android:name=".activities.TaskViewNotifier"
android:excludeFromRecents="true"

@ -29,6 +29,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:id="@+id/event"
android:paddingRight="8px"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
@ -142,6 +143,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:id="@+id/event"
android:paddingRight="8px"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
@ -287,6 +289,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:id="@+id/event"
android:paddingRight="8px"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

@ -226,6 +226,9 @@ If you don\'t want to see the new task right after you complete the old one, you
<string name="p_sync_button">sync_button</string>
<string name="sync_button_title">Main Menu Shortcut</string>
<string name="sync_button_desc">Show \"Synchronize\" in Astrid\'s menu</string>
<string name="p_sync_quiet">sync_dialogs</string>
<string name="sync_quiet_title">Hide Dialogs</string>
<string name="sync_quiet_desc">Hide the Sync Results dialogs</string>
<string name="p_sync_background">sync_background</string>
<string name="sync_background_title">In Background</string>
<string name="sync_background_desc">Synchronize without bothering you</string>
@ -335,7 +338,7 @@ Wish me luck!\n
<string name="prefs_timeVisible_default">true</string>
<string name="prefs_importanceVisible">importanceVisible</string>
<string name="prefs_importanceVisible_title">Importance</string>
<string name="prefs_importanceVisible_desc">Task importance bubble</string>
<string name="prefs_importanceVisible_desc">Task importance indicator</string>
<string name="prefs_importanceVisible_default">true</string>
<string name="prefs_tagsVisible">tagsVisible</string>
<string name="prefs_tagsVisible_title">Tags</string>

@ -24,6 +24,11 @@
android:key="@string/p_sync_button"
android:title="@string/sync_button_title"
android:summary="@string/sync_button_desc" />
<CheckBoxPreference
android:key="@string/p_sync_quiet"
android:title="@string/sync_quiet_title"
android:summary="@string/sync_quiet_desc" />
</PreferenceCategory>

@ -449,6 +449,10 @@ public abstract class SynchronizationService {
/** Display a dialog with statistics */
public void showDialog(final Activity activity, String log) {
progressDialog.hide();
if(Preferences.shouldSuppressSyncDialogs(activity))
return;
Dialog.OnClickListener finishListener = new Dialog.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,

@ -223,6 +223,13 @@ public class Preferences {
R.string.p_sync_button), false);
}
/** Should hide sync dialog boxes? */
public static boolean shouldSuppressSyncDialogs(Context context) {
Resources r = context.getResources();
return getPrefs(context).getBoolean(r.getString(
R.string.p_sync_quiet), false);
}
/** returns the font size user wants on the front page */
public static Integer autoSyncFrequency(Context context) {
return getIntegerValue(context, R.string.p_sync_every);

Loading…
Cancel
Save