package hm.orz.chaos114.android.slideviewer;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.squareup.leakcanary.LeakCanary;

import hm.orz.chaos114.android.slideviewer.ui.CrashReportingTree;
import hm.orz.chaos114.android.slideviewer.util.AnalyticsManager;
import timber.log.Timber;

public class SlideViewerApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        LeakCanary.install(this);
        Timber.plant(BuildConfig.DEBUG ? new Timber.DebugTree() : new CrashReportingTree());

        AnalyticsManager.initializeAnalyticsTracker(this);
        AnalyticsManager.updateUserProperty();

        if (true) {
            Integer i = 1;
            i.toString();

            SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();
            editor.apply();
        }
    }
}

@@ -74,95 +74,8 @@
 ion;
-%0Aimport android.content.SharedPreferences;%0Aimport android.preference.PreferenceManager;
 %0A%0Aim
@@ -641,227 +641,8 @@
 y();
-%0A%0A        if (true) %7B%0A            Integer i = 1;%0A            i.toString();%0A%0A            SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();%0A            editor.apply();%0A        %7D
 %0A   

delete test code