mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
暫定)エラーハンドリング
This commit is contained in:
parent
e8804e8f84
commit
69b60944b4
|
@ -185,9 +185,21 @@ public class ScannerDataManagerStubFragment extends Fragment {
|
||||||
bitmaps[i] = results.get(i).getBitmap();
|
bitmaps[i] = results.get(i).getBitmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.documentProcessor.addNewPagesToLast(bitmaps);
|
try {
|
||||||
|
this.documentProcessor.addNewPagesToLast(bitmaps);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getActivity(), "Error occurred while adding pages", Toast.LENGTH_LONG).show();
|
||||||
|
Log.e("ScannerDataManagerStubFragment", "Error occurred while adding pages", e);
|
||||||
|
}
|
||||||
|
|
||||||
this.documentProcessor.close();
|
Toast.makeText(getActivity(), "pages added", Toast.LENGTH_LONG).show();
|
||||||
|
|
||||||
|
try {
|
||||||
|
this.documentProcessor.close();
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getActivity(), "Error occurred while closing documentProcessor", Toast.LENGTH_LONG).show();
|
||||||
|
Log.e("ScannerDataManagerStubFragment", "Error occurred while closing documentProcessor", e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user