Loading java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java +10 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,10 @@ public class DownloadManagerWrapper { // be opened. It may be a problem with file system corruption. In any case, there is // not much we can do apart from avoiding crashing. Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e); } catch (IllegalArgumentException e) { // Not sure how this can happen, but it could be another case where the provider // is disabled. Or it could be a bug in older versions of the framework. Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } } Loading @@ -69,6 +73,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't open downloaded file with ID " + fileId, e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } // We come here if mDownloadManager is null or if an exception was thrown. throw new FileNotFoundException(); Loading @@ -81,6 +87,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't query the download manager", e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } // We come here if mDownloadManager is null or if an exception was thrown. return null; Loading @@ -93,6 +101,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't enqueue a request with the download manager", e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } return 0; } Loading Loading
java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java +10 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,10 @@ public class DownloadManagerWrapper { // be opened. It may be a problem with file system corruption. In any case, there is // not much we can do apart from avoiding crashing. Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e); } catch (IllegalArgumentException e) { // Not sure how this can happen, but it could be another case where the provider // is disabled. Or it could be a bug in older versions of the framework. Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } } Loading @@ -69,6 +73,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't open downloaded file with ID " + fileId, e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } // We come here if mDownloadManager is null or if an exception was thrown. throw new FileNotFoundException(); Loading @@ -81,6 +87,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't query the download manager", e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } // We come here if mDownloadManager is null or if an exception was thrown. return null; Loading @@ -93,6 +101,8 @@ public class DownloadManagerWrapper { } } catch (SQLiteException e) { Log.e(TAG, "Can't enqueue a request with the download manager", e); } catch (IllegalArgumentException e) { Log.e(TAG, "Can't find the content URL for DownloadManager?", e); } return 0; } Loading