~xdavidwu/saf-cephfs

e882e38890ade010a627f44c818ffaa2a6ff19fe — xdavidwu 3 years ago e8f8494
DocumentsProvider: toast on IOException
1 files changed, 4 insertions(+), 2 deletions(-)

M src/main/java/org/safcephfs/CephFSDocumentsProvider.java
M src/main/java/org/safcephfs/CephFSDocumentsProvider.java => src/main/java/org/safcephfs/CephFSDocumentsProvider.java +4 -2
@@ 134,8 134,10 @@ public class CephFSDocumentsProvider extends DocumentsProvider {
						throw new IllegalStateException("ESHUTDOWN");
					}
				} else {
					Log.e(APP_NAME, "unrecognized error from jni: " + e.getMessage());
					throw new IllegalStateException("unrecognized error");
					Message msg = lthread.handler.obtainMessage();
					msg.obj = APP_NAME + ": operation failed: " + e.getMessage();
					lthread.handler.sendMessage(msg);
					throw new IllegalStateException(e.getMessage());
				}
			}
		}