diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index cbeab7e21..a5ff91bfa 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionName="3.5.0-beta" + android:versionCode="163"> @@ -53,7 +53,7 @@ android:minSdkVersion="3" /> - @@ -118,7 +118,19 @@ - + + + + + + + + + + @@ -129,6 +141,7 @@ + @@ -136,6 +149,24 @@ + + + + + + + + + + + + @@ -146,8 +177,8 @@ - - + + @@ -214,7 +245,7 @@ - + diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java index a44102d8f..b32541cd0 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java @@ -3,11 +3,12 @@ */ package com.todoroo.astrid.gtasks; -import android.app.PendingIntent; import android.content.BroadcastReceiver; +import android.content.ComponentName; import android.content.ContentValues; import android.content.Context; import android.content.Intent; +import android.os.Bundle; import com.timsu.astrid.R; import com.todoroo.andlib.data.AbstractModel; @@ -58,13 +59,9 @@ public class GtasksFilterExposer extends BroadcastReceiver { GtasksMetadata.LIST_ID.eq(list.getValue(GtasksList.REMOTE_ID)))).orderBy( Order.asc(Functions.cast(GtasksMetadata.ORDER, "INTEGER"))), //$NON-NLS-1$ values); - Intent intent = new Intent(ContextManager.getContext(), GtasksListActivity.class); - intent.putExtra(GtasksListActivity.TOKEN_LIST_ID, list.getValue(GtasksList.REMOTE_ID)); - intent.putExtra(GtasksListActivity.TOKEN_FILTER, filter); - intent.setType(list.getValue(GtasksList.REMOTE_ID)); - PendingIntent pendingIntent = PendingIntent.getActivity(ContextManager.getContext(), - 0, intent, 0); - filter.intent = pendingIntent; + filter.customTaskList = new ComponentName(ContextManager.getContext(), GtasksListActivity.class); + filter.customExtras = new Bundle(); + filter.customExtras.putString(GtasksListActivity.TOKEN_LIST_ID, list.getValue(GtasksList.REMOTE_ID)); return filter; } diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java index 3a10f5e0e..e57f09917 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java @@ -235,12 +235,13 @@ public class GtasksSyncProvider extends SyncProvider { gcm.authenticate(false); } catch (GoogleLoginException e) { Toast.makeText(activity, R.string.gtasks_login_error, Toast.LENGTH_LONG).show(); + Log.e("gtasks", "login", e); return; } catch (IOException e) { Toast.makeText(activity, R.string.SyP_ioerror, Toast.LENGTH_LONG).show(); + Log.e("gtasks", "login", e); } String token = gcm.getToken(); - System.err.println("got token " + token); gtasksPreferenceService.setToken(token); activity.startService(new Intent(SyncBackgroundService.SYNC_ACTION, null, activity, GtasksBackgroundService.class)); @@ -426,7 +427,8 @@ public class GtasksSyncProvider extends SyncProvider { String remoteId = updateTaskHelper(local, null, createdTask); gtasksTaskListUpdater.addRemoteTaskMapping(local.task.getId(), remoteId); - local.gtaskMetadata.setValue(GtasksMetadata.LIST_ID, remoteId); + local.gtaskMetadata.setValue(GtasksMetadata.ID, remoteId); + local.gtaskMetadata.setValue(GtasksMetadata.LIST_ID, list); return local; } diff --git a/astrid/res/layout/power_widget_configure.xml b/astrid/res/layout/power_widget_configure.xml deleted file mode 100644 index eb3c23a2c..000000000 --- a/astrid/res/layout/power_widget_configure.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -