miiinor tweaks to timers

pull/14/head
Tim Su 14 years ago
parent 3fa8579c3e
commit a84e76d983

@ -151,7 +151,7 @@
<!-- core --> <!-- core -->
<receiver android:name="com.todoroo.astrid.core.CorePlugin"> <receiver android:name="com.todoroo.astrid.core.CorePlugin">
<intent-filter> <intent-filter android:priority="9000" >
<action android:name="com.todoroo.astrid.REQUEST_ADDONS" /> <action android:name="com.todoroo.astrid.REQUEST_ADDONS" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>
@ -223,7 +223,7 @@
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name="com.todoroo.astrid.timers.TimerFilterExposer"> <receiver android:name="com.todoroo.astrid.timers.TimerFilterExposer">
<intent-filter> <intent-filter android:priority="10000">
<action android:name="com.todoroo.astrid.REQUEST_FILTERS" /> <action android:name="com.todoroo.astrid.REQUEST_FILTERS" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>

@ -7,19 +7,19 @@
android:paddingLeft="3px"> android:paddingLeft="3px">
<ImageView <ImageView
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="3" android:layout_weight="5"
android:gravity="bottom|center" android:gravity="bottom|center_horizontal"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/timers_decoration" /> android:src="@drawable/timers_decoration" />
<Chronometer android:id="@+id/timer" <Chronometer android:id="@+id/timer"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="2"
android:gravity="top|center" android:gravity="top"
android:textSize="10sp" /> android:textSize="10sp" />
</LinearLayout> </LinearLayout>

@ -575,7 +575,9 @@ public class TaskAdapter extends CursorAdapter {
} else { } else {
expanded = taskId; expanded = taskId;
} }
notifyDataSetInvalidated(); notifyDataSetChanged();
ListView listView = activity.getListView();
listView.setSelection(listView.indexOfChild(viewHolder.view));
} }
} }

Loading…
Cancel
Save