summaryrefslogtreecommitdiffstats
path: root/src/net/hoopajoo
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/hoopajoo')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/InputSmoother.java3
-rw-r--r--src/net/hoopajoo/android/SoftKeys/Keys.java12
-rw-r--r--src/net/hoopajoo/android/SoftKeys/QuickDoc.java4
3 files changed, 15 insertions, 4 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/InputSmoother.java b/src/net/hoopajoo/android/SoftKeys/InputSmoother.java
index 12283be..1aba4f6 100644
--- a/src/net/hoopajoo/android/SoftKeys/InputSmoother.java
+++ b/src/net/hoopajoo/android/SoftKeys/InputSmoother.java
@@ -23,6 +23,8 @@ import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
+import android.util.Log;
+
// keeps a list of points to drop outliers that make your drag jitter
public class InputSmoother {
private List<PointCheck> mPoints = new ArrayList<PointCheck>();
@@ -35,6 +37,7 @@ public class InputSmoother {
public void addPoint( int x, int y ) {
PointCheck p = new PointCheck();
+ //Log.d( "Smoother", "adding points: " + x + ", " + y );
p.x = x;
p.y = y;
mPoints.add( p );
diff --git a/src/net/hoopajoo/android/SoftKeys/Keys.java b/src/net/hoopajoo/android/SoftKeys/Keys.java
index 1bf0edd..c4776f7 100644
--- a/src/net/hoopajoo/android/SoftKeys/Keys.java
+++ b/src/net/hoopajoo/android/SoftKeys/Keys.java
@@ -30,6 +30,7 @@ import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
+import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.BitmapDrawable;
@@ -362,10 +363,17 @@ public class Keys extends Activity implements OnClickListener, OnLongClickListen
}
// what's new/getting started?
- int force_level = 2010122701;
+ int force_level = 0;
+ try {
+ PackageInfo info = getPackageManager().getPackageInfo( getPackageName(), 0 );
+ force_level = info.versionCode;
+ }catch( Exception e ) {
+
+ }
+ d( "Updating last version code: " + force_level );
if( settings.getInt( "last_intro_level", 0 ) < force_level ) {
Intent intent = new Intent( this, QuickDoc.class );
- intent.putExtra( "type", "getting_started" );
+ intent.putExtra( "type", "whats_new" );
startActivity( intent );
SharedPreferences.Editor e = settings.edit();
e.putInt( "last_intro_level", force_level );
diff --git a/src/net/hoopajoo/android/SoftKeys/QuickDoc.java b/src/net/hoopajoo/android/SoftKeys/QuickDoc.java
index 2f8323a..3b7a078 100644
--- a/src/net/hoopajoo/android/SoftKeys/QuickDoc.java
+++ b/src/net/hoopajoo/android/SoftKeys/QuickDoc.java
@@ -49,8 +49,8 @@ public class QuickDoc extends Activity {
if( i != null ) {
Bundle ex = i.getExtras();
String type = ex.getString( "type" );
- if( type.equals( "getting_started" ) ) {
- url += "getting_started.html";
+ if( type.equals( "whats_new" ) ) {
+ url += "whats_new.html";
}else if( type.equals( "help" ) ) {
url += "help.html";
}else{