Fix Fresco initialization

This commit is contained in:
maskara 2017-12-04 02:33:36 +05:30
parent ffc0e0779d
commit db8cae95e4
2 changed files with 1 additions and 9 deletions

View file

@ -31,13 +31,6 @@
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true" />
<activity
android:name="org.acra.CrashReportDialog"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Dialog" />
<activity android:name=".auth.LoginActivity">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />

View file

@ -67,6 +67,7 @@ public class CommonsApplication extends DaggerApplication {
public void onCreate() {
super.onCreate();
Fresco.initialize(this);
if (setupLeakCanary() == RefWatcher.DISABLED) {
return;
}
@ -81,8 +82,6 @@ public class CommonsApplication extends DaggerApplication {
// Fire progress callbacks for every 3% of uploaded content
System.setProperty("in.yuvi.http.fluent.PROGRESS_TRIGGER_THRESHOLD", "3.0");
Fresco.initialize(this);
}
protected RefWatcher setupLeakCanary() {