Revert change to leak canary version, add todo for bug

This commit is contained in:
Anthony Restaino 2016-01-16 22:49:31 -05:00
parent c1083f6aab
commit 35855a1c02
2 changed files with 4 additions and 2 deletions

View File

@ -86,8 +86,8 @@ dependencies {
compile(project(':libnetcipher'))
// memory leak analysis
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
provided 'javax.annotation:jsr250-api:1.0'

View File

@ -762,6 +762,8 @@ public class LightningView {
* the WebView cannot be recreated using the public
* api.
*/
// TODO fix bug where WebView.destroy is being called before the tab
// is removed
public synchronized void onDestroy() {
if (mWebView != null) {
mWebView.stopLoading();