Slight updates to get to 2.6.1 - including making the swipes far more lenient, and fixing back button behavior.

pull/14/head
Tim Su 17 years ago
parent 14766f250f
commit a38e8cb57b

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid" package="com.timsu.astrid"
android:versionCode="98" android:versionCode="99"
android:versionName="2.6.0"> android:versionName="2.6.1">
<meta-data android:name="com.a0soft.gphone.aTrackDog.webURL" <meta-data android:name="com.a0soft.gphone.aTrackDog.webURL"
android:value="http://www.weloveastrid.com" /> android:value="http://www.weloveastrid.com" />

@ -63,7 +63,7 @@
<item>Why postpone when you can um... not postpone!</item> <item>Why postpone when you can um... not postpone!</item>
<item>You\'ll finish this eventually, I presume?</item> <item>You\'ll finish this eventually, I presume?</item>
<item>I think you\'re really great! How about not putting this off?</item> <item>I think you\'re really great! How about not putting this off?</item>
<item>Every time you do that, you put yourself at risk!</item> <item>Will you be able to achieve your goals if you do that?</item>
<item>Postpone, postpone, postpone. When will you change!</item> <item>Postpone, postpone, postpone. When will you change!</item>
<item>I\'ve had enough with your excuses! Just do it already!</item> <item>I\'ve had enough with your excuses! Just do it already!</item>
<item>Didn\'t you make that excuse last time?</item> <item>Didn\'t you make that excuse last time?</item>

@ -71,10 +71,10 @@ public class TaskList extends Activity {
private static final int FLING_DIST_THRESHOLD = 120; private static final int FLING_DIST_THRESHOLD = 120;
/** Maximum distance in the other axis for a fling */ /** Maximum distance in the other axis for a fling */
private static final int MAX_FLING_OTHER_AXIS = 150; private static final int MAX_FLING_OTHER_AXIS = 300;
/** Minimum velocity a fling must have to trigger motion */ /** Minimum velocity a fling must have to trigger motion */
private static final int FLING_VEL_THRESHOLD = 300; private static final int FLING_VEL_THRESHOLD = 200;
// view components // view components
private ViewFlipper viewFlipper; private ViewFlipper viewFlipper;
@ -184,7 +184,7 @@ public class TaskList extends Activity {
return false; return false;
Log.i("astrid", "Got fling. X: " + (e2.getX() - e1.getX()) + Log.i("astrid", "Got fling. X: " + (e2.getX() - e1.getX()) +
", vel: " + velocityX); ", vel: " + velocityX + " Y: " + (e2.getY() - e1.getY()));
// flick R to L // flick R to L
if(e1.getX() - e2.getX() > FLING_DIST_THRESHOLD && if(e1.getX() - e2.getX() > FLING_DIST_THRESHOLD &&

@ -795,6 +795,9 @@ public class TaskListSubActivity extends SubActivity {
if(context.filterTag != null) { if(context.filterTag != null) {
showTagsView(); showTagsView();
return true; return true;
} else {
// close the app
getParent().finish();
} }
} }

Loading…
Cancel
Save