Skip to content

Commit db8cae9

Browse files
author
maskara
committed
Fix Fresco initialization
1 parent ffc0e07 commit db8cae9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
android:excludeFromRecents="true"
3232
android:finishOnTaskLaunch="true" />
3333

34-
<activity
35-
android:name="org.acra.CrashReportDialog"
36-
android:excludeFromRecents="true"
37-
android:finishOnTaskLaunch="true"
38-
android:launchMode="singleInstance"
39-
android:theme="@android:style/Theme.Dialog" />
40-
4134
<activity android:name=".auth.LoginActivity">
4235
<intent-filter>
4336
<category android:name="android.intent.category.LAUNCHER" />

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class CommonsApplication extends DaggerApplication {
6767
public void onCreate() {
6868
super.onCreate();
6969

70+
Fresco.initialize(this);
7071
if (setupLeakCanary() == RefWatcher.DISABLED) {
7172
return;
7273
}
@@ -81,8 +82,6 @@ public void onCreate() {
8182

8283
// Fire progress callbacks for every 3% of uploaded content
8384
System.setProperty("in.yuvi.http.fluent.PROGRESS_TRIGGER_THRESHOLD", "3.0");
84-
85-
Fresco.initialize(this);
8685
}
8786

8887
protected RefWatcher setupLeakCanary() {

0 commit comments

Comments
 (0)