diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-05-05 01:48:58 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-05-05 01:48:58 -0400 |
commit | f6ac8024e9e111da85230332765d2e98cd090819 (patch) | |
tree | 22a93f9bd7fb93a794bf4192149bcc52beaa4c54 /src/us | |
parent | bf039d8e355d489ad4f591d7554dbf5455aa1d62 (diff) |
fix the saved dialog
Diffstat (limited to 'src/us')
-rw-r--r-- | src/us/minak/CreateGestureActivity.java | 6 | ||||
-rw-r--r-- | src/us/minak/SettingsActivity.java | 3 |
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); |