just reformatting

pull/14/head
Tim Su 15 years ago
parent 61cfc9eb89
commit 56492a8987

@ -124,7 +124,6 @@ public class ShortcutActivity extends Activity {
startActivity(taskListIntent); startActivity(taskListIntent);
} }
finish(); finish();
} }
@ -133,8 +132,10 @@ public class ShortcutActivity extends Activity {
ShortcutActivity.class); ShortcutActivity.class);
shortcutIntent.setAction(Intent.ACTION_VIEW); shortcutIntent.setAction(Intent.ACTION_VIEW);
shortcutIntent.putExtra(ShortcutActivity.TOKEN_FILTER_TITLE, filter.title); shortcutIntent.putExtra(ShortcutActivity.TOKEN_FILTER_TITLE,
shortcutIntent.putExtra(ShortcutActivity.TOKEN_FILTER_SQL, filter.sqlQuery); filter.title);
shortcutIntent.putExtra(ShortcutActivity.TOKEN_FILTER_SQL,
filter.sqlQuery);
if (filter.valuesForNewTasks != null) { if (filter.valuesForNewTasks != null) {
for (Entry<String, Object> item : filter.valuesForNewTasks.valueSet()) { for (Entry<String, Object> item : filter.valuesForNewTasks.valueSet()) {
String key = TOKEN_FILTER_VALUES_ITEM + item.getKey(); String key = TOKEN_FILTER_VALUES_ITEM + item.getKey();
@ -150,7 +151,8 @@ public class ShortcutActivity extends Activity {
else if (value instanceof Long) else if (value instanceof Long)
shortcutIntent.putExtra(key, (Long) value); shortcutIntent.putExtra(key, (Long) value);
else else
throw new IllegalStateException("Unsupported bundle type " + value.getClass()); //$NON-NLS-1$ throw new IllegalStateException(
"Unsupported bundle type " + value.getClass()); //$NON-NLS-1$
} }
} }
return shortcutIntent; return shortcutIntent;

Loading…
Cancel
Save