OSDN Git Service
(root)
/
android-x86
/
packages-apps-CMFileManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e4eca
)
Disable the editor on error
author
jruesga
<jorge@ruesga.com>
Sat, 27 Oct 2012 14:14:59 +0000
(16:14 +0200)
committer
jruesga
<jorge@ruesga.com>
Sat, 27 Oct 2012 14:14:59 +0000
(16:14 +0200)
src/com/cyanogenmod/filemanager/activities/EditorActivity.java
patch
|
blob
|
history
diff --git
a/src/com/cyanogenmod/filemanager/activities/EditorActivity.java
b/src/com/cyanogenmod/filemanager/activities/EditorActivity.java
index
2370b9f
..
dd35d00
100644
(file)
--- a/
src/com/cyanogenmod/filemanager/activities/EditorActivity.java
+++ b/
src/com/cyanogenmod/filemanager/activities/EditorActivity.java
@@
-527,6
+527,7
@@
public class EditorActivity extends Activity implements TextWatcher {
if (!result.booleanValue()) {
if (this.mCause != null) {
ExceptionUtil.translateException(EditorActivity.this, this.mCause);
+ EditorActivity.this.mEditor.setEnabled(false);
}
} else {
// Now we have the buffer, set the text of the editor
@@
-665,11
+666,15
@@
public class EditorActivity extends Activity implements TextWatcher {
ExceptionUtil.translateException(
EditorActivity.this,
cause);
+ EditorActivity.this.mEditor.setEnabled(false);
return;
}
//Read the file again
asyncRead();
+ } else {
+ // Finish the application
+ EditorActivity.this.finish();
}
}
});