Skip to content

Commit

Permalink
Merge branch 'hotfix/4.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomeaux committed Apr 14, 2014
2 parents 2c1292d + 4919b9f commit 057f25e
Show file tree
Hide file tree
Showing 12 changed files with 191 additions and 147 deletions.
4 changes: 2 additions & 2 deletions BoardGameGeek/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.boardgamegeek"
android:installLocation="auto"
android:versionCode="34"
android:versionName="4.7.1" >
android:versionCode="35"
android:versionName="4.7.2" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
33 changes: 12 additions & 21 deletions BoardGameGeek/res/layout/row_forumthread.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,20 @@
android:gravity="right" />
</LinearLayout>

<LinearLayout
<TextView
android:id="@+id/thread_postdate"
style="@style/Text.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<TextView
android:id="@+id/thread_postdate"
style="@style/Text.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:maxLines="1" />
android:layout_gravity="left|center_vertical"
android:maxLines="1" />

<TextView
android:id="@+id/thread_lastpostdate"
style="@style/Text.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:gravity="right"
android:maxLines="1" />
</LinearLayout>
<TextView
android:id="@+id/thread_lastpostdate"
style="@style/Text.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:maxLines="1" />

</LinearLayout>
64 changes: 64 additions & 0 deletions BoardGameGeek/res/layout/row_forumthread_wide.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/RowContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/padding_small" >

<TextView
android:id="@+id/thread_title"
style="@style/Text.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/padding_small" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<TextView
android:id="@+id/thread_author"
style="@style/Text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:layout_weight="1" />

<TextView
android:id="@+id/thread_numarticles"
style="@style/Text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:layout_weight="1"
android:gravity="right" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<TextView
android:id="@+id/thread_postdate"
style="@style/Text.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:maxLines="1" />

<TextView
android:id="@+id/thread_lastpostdate"
style="@style/Text.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_weight="1"
android:gravity="right"
android:maxLines="1" />
</LinearLayout>

</LinearLayout>
6 changes: 6 additions & 0 deletions BoardGameGeek/res/values-normal/layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<item name="row_forumthread" type="layout">@layout/row_forumthread</item>

</resources>
6 changes: 6 additions & 0 deletions BoardGameGeek/res/values-sw320dp/layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<item name="row_forumthread" type="layout">@layout/row_forumthread_wide</item>

</resources>
16 changes: 15 additions & 1 deletion BoardGameGeek/res/values/strings_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,21 @@
<string name="pref_about_version">Version</string>
<string name="pref_about_app_name_and_version"><![CDATA[<b>BoardGameGeek</b> <font color="#888888">%s</font>]]></string>
<string name="pref_about_body">
<![CDATA[<b>What\'s New?</b><br/>
<![CDATA[<h4>What\'s New?</h4>
<h5>4.7.2</h5>
<ul>
<li>Fix crash when viewing buddy collection</li>
<li>Don\'t allow clicking on forum header</li>
<li>When saving a view, enable the Save button correctly<li>
<li>When deleting a view, go back to the default view</li>
<li>Improve format of forum for narrow screens</li>
<li>Clicking the h-index notification takes you to a BGG thread</li>
</ul>
<h5>4.7.1</h5>
<ul>
<li>No more crashes</li>
</ul>
<h5>4.7</h5>
<ul>
<li>Sticky headers and bigger images in lists</li>
<li>Set a collection view as the default</li>
Expand Down
9 changes: 7 additions & 2 deletions BoardGameGeek/src/com/boardgamegeek/service/SyncService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
Expand Down Expand Up @@ -171,8 +173,11 @@ private static void notifyHIndex(Context context, int hIndex, int oldHIndex) {
messageId = R.string.sync_notification_h_index_decrease;
}
SpannableString ss = StringUtils.boldSecondString(context.getString(messageId), String.valueOf(hIndex));
NotificationCompat.Builder builder = NotificationUtils.createNotificationBuilder(context,
R.string.sync_notification_title_h_index, PlaysActivity.class).setContentText(ss);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://boardgamegeek.com/thread/953084"));
PendingIntent pi = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
NotificationCompat.Builder builder = NotificationUtils
.createNotificationBuilder(context, R.string.sync_notification_title_h_index, PlaysActivity.class)
.setContentText(ss).setContentIntent(pi);
NotificationUtils.notify(context, NotificationUtils.ID_H_INDEX, builder);
}
}
Loading

0 comments on commit 057f25e

Please sign in to comment.