Skip to content

Commit

Permalink
Fix widget plus bug
Browse files Browse the repository at this point in the history
Widgets would always add to list of latest configured list.

fixes #267
fixes #264

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
  • Loading branch information
spacecowboy committed Oct 14, 2014
1 parent b72584b commit bb8d545
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ configurations {
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:support-v4:19.0.1+'
compile 'com.google.android.gms:play-services:5.0.77'
compile 'com.google.android.gms:play-services:5.2.08'
compile 'joda-time:joda-time:2.3'
// FilePicker
compile 'com.nononsenseapps:filepicker:1.1.3+'
Expand All @@ -64,7 +64,7 @@ dependencies {
// Version number
def versionMajor = 5 // Major UI overhauls
def versionMinor = 4 // Some new functionality
def versionPatch = 0 // Bug fixes
def versionPatch = 1 // Bug fixes
def versionBuild = 0 // Bump for dogfood builds, public betas, etc.

// Version name from git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ public static RemoteViews buildRemoteViews(final Context context,
Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_CLEAR_TASK)
.setClass(context, ActivityMain_.class)
.setAction(Intent.ACTION_INSERT).setData(Task.URI)
// Append a dummy path so we don't override this intent on 2nd, 3rd, etc, widgets.
.setAction(Intent.ACTION_INSERT).setData(Uri.withAppendedPath(Task.URI,
"/widget/" + appWidgetId + "/-1"))
.putExtra(TaskDetailFragment.ARG_ITEM_LIST_ID, listId);

PendingIntent createPendingIntent = PendingIntent.getActivity(context,
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/layout/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@
android:autoLink="web|email|map"
android:text="http://goo.gl/Ocjjl" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="\nVersion 5.4.1"
android:fontFamily="sans-serif-condensed"
android:textColor="@android:color/holo_blue_dark"
android:textStyle="bold" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="@string/changelog_5.4.1" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/changelog_strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="changelog_5.4.1">
\nFixed bug with multiple widget where the plus icon would always add notes to the last configured list
\nTranslations</string>

<string name="changelog_5.4">
\nRemoved ability to donate and unlocked themes for everyone
\nTranslations</string>
Expand Down

0 comments on commit bb8d545

Please sign in to comment.