Added CrashReporter dependencies

This commit is contained in:
CappielloAntonio 2021-08-14 16:08:08 +02:00
parent 10c5c295e6
commit 3c507f2f4b
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import android.content.SharedPreferences;
import androidx.preference.PreferenceManager;
import com.balsikandar.crashreporter.CrashReporter;
import com.cappielloantonio.play.helper.ThemeHelper;
import com.cappielloantonio.play.subsonic.Subsonic;
import com.cappielloantonio.play.subsonic.SubsonicPreferences;
@ -20,6 +21,7 @@ public class App extends Application {
public void onCreate() {
super.onCreate();
// RedScreenOfDeath.init(this);
CrashReporter.initialize(this);
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);