mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Added redscreenofdeath debug implementation
This commit is contained in:
parent
f1929edabd
commit
be6f8776fb
2 changed files with 3 additions and 1 deletions
|
|
@ -91,5 +91,5 @@ dependencies {
|
||||||
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
||||||
|
|
||||||
// Red screen of death
|
// Red screen of death
|
||||||
// debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
|
debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
|
||||||
}
|
}
|
||||||
|
|
@ -8,6 +8,7 @@ import androidx.preference.PreferenceManager;
|
||||||
|
|
||||||
import com.cappielloantonio.play.helper.ThemeHelper;
|
import com.cappielloantonio.play.helper.ThemeHelper;
|
||||||
import com.cappielloantonio.play.util.PreferenceUtil;
|
import com.cappielloantonio.play.util.PreferenceUtil;
|
||||||
|
import com.melegy.redscreenofdeath.RedScreenOfDeath;
|
||||||
|
|
||||||
import org.jellyfin.apiclient.AppInfo;
|
import org.jellyfin.apiclient.AppInfo;
|
||||||
import org.jellyfin.apiclient.Jellyfin;
|
import org.jellyfin.apiclient.Jellyfin;
|
||||||
|
|
@ -26,6 +27,7 @@ public class App extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
RedScreenOfDeath.init(this);
|
||||||
|
|
||||||
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||||
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue