Loading packages/StatementService/src/com/android/statementservice/DirectStatementService.java +13 −10 Original line number Diff line number Diff line Loading @@ -155,17 +155,20 @@ public final class DirectStatementService extends Service { @Override public void onDestroy() { super.onDestroy(); if (mThread != null) { mThread.quit(); } final HttpResponseCache responseCache = mHttpResponseCache; mHandler.post(new Runnable() { public void run() { try { if (mHttpResponseCache != null) { mHttpResponseCache.delete(); if (responseCache != null) { responseCache.delete(); } } catch (IOException e) { Log.i(TAG, "HTTP(S) response cache deletion failed:" + e); } Looper.myLooper().quit(); } }); mHttpResponseCache = null; } @Override Loading Loading
packages/StatementService/src/com/android/statementservice/DirectStatementService.java +13 −10 Original line number Diff line number Diff line Loading @@ -155,17 +155,20 @@ public final class DirectStatementService extends Service { @Override public void onDestroy() { super.onDestroy(); if (mThread != null) { mThread.quit(); } final HttpResponseCache responseCache = mHttpResponseCache; mHandler.post(new Runnable() { public void run() { try { if (mHttpResponseCache != null) { mHttpResponseCache.delete(); if (responseCache != null) { responseCache.delete(); } } catch (IOException e) { Log.i(TAG, "HTTP(S) response cache deletion failed:" + e); } Looper.myLooper().quit(); } }); mHttpResponseCache = null; } @Override Loading