Permalink
Browse files

Fixed crash with labels and format flags. Format flags not good.

  • Loading branch information...
1 parent 57c6f66 commit 81f56e69af97e9791435145aae294d52b6b5e835 @timsu timsu committed May 25, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 astrid/src-legacy/com/timsu/astrid/sync/SynchronizationProvider.java
@@ -661,7 +661,12 @@ public void run() {
protected class ProgressLabelUpdater implements Runnable {
String label;
public ProgressLabelUpdater(Context context, int id, Object... args) {
- this.label = context.getResources().getString(id, args);
+ try {
+ this.label = context.getResources().getString(id, args);
+ } catch (Exception e) {
+ Log.e("sync-progress", "Error formatting progress label", e);
+ this.label = context.getResources().getString(id);
+ }
}
public void run() {
if(isBackgroundService()) {

0 comments on commit 81f56e6

Please sign in to comment.