mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Added message logging
This commit is contained in:
@@ -30,6 +30,7 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Configuration;
|
||||
import android.util.Printer;
|
||||
import android.webkit.CookieManager;
|
||||
|
||||
import androidx.lifecycle.Observer;
|
||||
@@ -69,6 +70,13 @@ public class ApplicationEx extends Application {
|
||||
long start = new Date().getTime();
|
||||
Log.logMemory(this, "App create version=" + BuildConfig.VERSION_NAME);
|
||||
|
||||
getMainLooper().setMessageLogging(new Printer() {
|
||||
@Override
|
||||
public void println(String msg) {
|
||||
Log.d("Loop: " + msg);
|
||||
}
|
||||
});
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
final boolean crash_reports = prefs.getBoolean("crash_reports", false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user