diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index ca7cb8e7d..8a94d522f 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -1,7 +1,8 @@ + android:versionName="3.0.0-beta2" android:versionCode="137" + android:installLocation="auto"> @@ -51,7 +52,6 @@ - diff --git a/astrid/default.properties b/astrid/default.properties index 08ad68f11..c5d5335ee 100644 --- a/astrid/default.properties +++ b/astrid/default.properties @@ -10,5 +10,5 @@ # Indicates whether an apk should be generated for each density. split.density=false # Project target. -target=android-4 +target=android-8 apk-configurations= diff --git a/astrid/plugin-src/com/todoroo/astrid/backup/BackupPreferences.java b/astrid/plugin-src/com/todoroo/astrid/backup/BackupPreferences.java index 1ca13d244..9aea2e7ca 100644 --- a/astrid/plugin-src/com/todoroo/astrid/backup/BackupPreferences.java +++ b/astrid/plugin-src/com/todoroo/astrid/backup/BackupPreferences.java @@ -2,6 +2,8 @@ package com.todoroo.astrid.backup; import java.util.Date; +import android.content.DialogInterface; +import android.content.Intent; import android.content.res.Resources; import android.graphics.Color; import android.os.Bundle; @@ -15,6 +17,8 @@ import com.todoroo.andlib.service.Autowired; import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.DialogUtilities; import com.todoroo.andlib.widget.TodorooPreferences; +import com.todoroo.astrid.activity.AddOnActivity; +import com.todoroo.astrid.core.PluginServices; import com.todoroo.astrid.utility.Preferences; /** @@ -57,6 +61,30 @@ public class BackupPreferences extends TodorooPreferences { view.setBackgroundColor(statusColor); } }); + + if(!PluginServices.getAddOnService().isPowerPack()) { + Preference restorePreference = new Preference(this); + restorePreference.setTitle(R.string.backup_BPr_how_to_restore); + restorePreference.setOnPreferenceClickListener(new OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + dialogUtilities.okCancelDialog(BackupPreferences.this, + getString(R.string.DLG_information_title), + getString(R.string.backup_BPr_how_to_restore_dialog), + new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent = new Intent(BackupPreferences.this, + AddOnActivity.class); + intent.putExtra(AddOnActivity.TOKEN_START_WITH_AVAILABLE, true); + startActivity(intent); + } + }, null); + return false; + } + }); + getPreferenceScreen().addPreference(restorePreference); + } } @Override diff --git a/astrid/plugin-src/com/todoroo/astrid/timers/TimerControlSet.java b/astrid/plugin-src/com/todoroo/astrid/timers/TimerControlSet.java index 361f45dac..d87b3b3e1 100644 --- a/astrid/plugin-src/com/todoroo/astrid/timers/TimerControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/timers/TimerControlSet.java @@ -28,7 +28,7 @@ public class TimerControlSet implements TaskEditControlSet { DependencyInjectionService.getInstance().inject(this); this.activity = activity; - LayoutInflater.from(activity).inflate(R.layout.gcal_control, parent, true); + LayoutInflater.from(activity).inflate(R.layout.timer_control, parent, true); estimated = new TimeDurationTaskEditControlSet(Task.ESTIMATED_SECONDS, R.id.estimatedDuration, 0, R.string.DLG_hour_minutes, diff --git a/astrid/res/drawable/icon_locale.png b/astrid/res/drawable/icon_locale.png new file mode 100644 index 000000000..1d120188e Binary files /dev/null and b/astrid/res/drawable/icon_locale.png differ diff --git a/astrid/res/layout/addon_adapter_row.xml b/astrid/res/layout/addon_adapter_row.xml index e29f45db8..3ede37df8 100644 --- a/astrid/res/layout/addon_adapter_row.xml +++ b/astrid/res/layout/addon_adapter_row.xml @@ -42,6 +42,7 @@ android:layout_below="@id/title" android:layout_toRightOf="@id/icon" android:singleLine="false" + android:textSize="11sp" style="@style/TextAppearance.TAd_ItemDetails"/> @@ -63,7 +64,7 @@ diff --git a/astrid/res/layout/task_adapter_row.xml b/astrid/res/layout/task_adapter_row.xml index 46c8322bb..7d22cdf53 100644 --- a/astrid/res/layout/task_adapter_row.xml +++ b/astrid/res/layout/task_adapter_row.xml @@ -7,7 +7,8 @@ android:paddingTop="4dip" android:paddingBottom="4dip" android:paddingLeft="4dip" - android:paddingRight="10dip" + android:paddingRight="4dip" + android:minHeight="40dip" android:orientation="vertical">