summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/us/minak/CreateGestureActivity.java6
-rw-r--r--src/us/minak/SettingsActivity.java3
2 files changed, 2 insertions, 7 deletions
diff --git a/src/us/minak/CreateGestureActivity.java b/src/us/minak/CreateGestureActivity.java
index c59c3b4..c153ac3 100644
--- a/src/us/minak/CreateGestureActivity.java
+++ b/src/us/minak/CreateGestureActivity.java
@@ -18,7 +18,6 @@ package us.minak;
import android.app.Activity;
import android.os.Bundle;
-import android.os.Environment;
import android.view.View;
import android.view.MotionEvent;
import android.gesture.GestureOverlayView;
@@ -27,8 +26,6 @@ import android.gesture.GestureLibrary;
import android.widget.TextView;
import android.widget.Toast;
-import java.io.File;
-
public class CreateGestureActivity extends Activity {
private static final float LENGTH_THRESHOLD = 120.0f;
@@ -89,8 +86,7 @@ public class CreateGestureActivity extends Activity {
setResult(RESULT_OK);
- final String path = new File(Environment.getExternalStorageDirectory(),
- "gestures").getAbsolutePath();
+ final String path = SettingsUtil.getGestureFile(this).getAbsolutePath();
Toast.makeText(this, getString(R.string.save_success, path), Toast.LENGTH_LONG).show();
} else {
setResult(RESULT_CANCELED);
diff --git a/src/us/minak/SettingsActivity.java b/src/us/minak/SettingsActivity.java
index 4d6eca8..cf3f635 100644
--- a/src/us/minak/SettingsActivity.java
+++ b/src/us/minak/SettingsActivity.java
@@ -248,8 +248,7 @@ public class SettingsActivity extends ListActivity {
if (result == STATUS_NO_STORAGE) {
getListView().setVisibility(View.GONE);
mEmptyMessageView.setVisibility(View.VISIBLE);
- mEmptyMessageView.setText(getString(R.string.gestures_error_loading,
- SettingsUtil.getGestureFile(mThis).getAbsolutePath()));
+ mEmptyMessageView.setText(getString(R.string.gestures_error_loading, SettingsUtil.getGestureFile(mThis).getAbsolutePath()));
} else {
findViewById(R.id.addButton).setEnabled(true);
findViewById(R.id.reloadButton).setEnabled(true);