Skip to content

Commit b76fb51

Browse files
Enable Stetho just on debug mode commons-app#813
1 parent 546620b commit b76fb51

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import android.database.sqlite.SQLiteDatabase;
1212
import android.preference.PreferenceManager;
1313
import android.support.v4.util.LruCache;
14-
import android.util.Log;
1514

1615
import com.facebook.drawee.backends.pipeline.Fresco;
1716
import com.facebook.stetho.Stetho;
@@ -131,11 +130,14 @@ public void onCreate() {
131130

132131
Timber.plant(new Timber.DebugTree());
133132

134-
Stetho.initializeWithDefaults(this);
133+
135134

136135
if (!BuildConfig.DEBUG) {
137136
ACRA.init(this);
137+
} else {
138+
Stetho.initializeWithDefaults(this);
138139
}
140+
139141
// Fire progress callbacks for every 3% of uploaded content
140142
System.setProperty("in.yuvi.http.fluent.PROGRESS_TRIGGER_THRESHOLD", "3.0");
141143

0 commit comments

Comments
 (0)