use correct constructor call

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2019-08-01 12:25:43 +02:00
parent cb812f6efe
commit 89b26e87a5
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -44,7 +44,6 @@ import android.view.WindowManager;
import com.evernote.android.job.JobManager; import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest; import com.evernote.android.job.JobRequest;
import com.nextcloud.client.account.UserAccountManager; import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.appinfo.AppInfo;
import com.nextcloud.client.device.PowerManagementService; import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.di.ActivityInjector; import com.nextcloud.client.di.ActivityInjector;
import com.nextcloud.client.di.DaggerAppComponent; import com.nextcloud.client.di.DaggerAppComponent;
@ -130,9 +129,6 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
@Inject @Inject
protected UploadsStorageManager uploadsStorageManager; protected UploadsStorageManager uploadsStorageManager;
@Inject
protected AppInfo appInfo;
@Inject @Inject
protected OnboardingService onboarding; protected OnboardingService onboarding;
@ -199,7 +195,6 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
if (!isCrashReportingProcess) { if (!isCrashReportingProcess) {
Thread.UncaughtExceptionHandler defaultPlatformHandler = Thread.getDefaultUncaughtExceptionHandler(); Thread.UncaughtExceptionHandler defaultPlatformHandler = Thread.getDefaultUncaughtExceptionHandler();
final ExceptionHandler crashReporter = new ExceptionHandler(this, final ExceptionHandler crashReporter = new ExceptionHandler(this,
() -> appInfo,
defaultPlatformHandler); defaultPlatformHandler);
Thread.setDefaultUncaughtExceptionHandler(crashReporter); Thread.setDefaultUncaughtExceptionHandler(crashReporter);
} }