package chat.rocket.android;


import android.os.StrictMode;
import com.facebook.stetho.Stetho;
import com.uphyca.stetho_realm.RealmInspectorModulesProvider;

public class RocketChatApplicationDebug extends RocketChatApplication {

  @Override
  public void onCreate() {
    super.onCreate();
    enableStrictMode();
    enableStetho();
  }

  private void enableStrictMode() {
    StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectDiskReads()
        .detectDiskWrites()
        .detectNetwork()   // or .detectAll() for all detectable problems
        .penaltyLog()
        .build());
    StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
        .detectLeakedSqlLiteObjects()
        .detectLeakedClosableObjects()
        .penaltyLog()
        .build());
  }

  private void enableStetho() {
    Stetho.initialize(Stetho.newInitializerBuilder(this)
        .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
        .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
        .build());
  }
}

@@ -23,17 +23,16 @@
 droid;%0A%0A
-%0A
 import a
@@ -1056,9 +1056,8 @@
 );%0A  %7D%0A%7D
-%0A

Update RocketChatApplicationDebug.java