Browse Source

Added version to logging

main
M66B 6 years ago
parent
commit
26d8772ed4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/ActivityBase.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 1
- 1
app/src/main/java/eu/faircode/email/ActivityBase.java View File

@ -33,7 +33,7 @@ import androidx.appcompat.app.AppCompatActivity;
abstract class ActivityBase extends AppCompatActivity implements SharedPreferences.OnSharedPreferenceChangeListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.i(Helper.TAG, "Create " + this.getClass().getName());
Log.i(Helper.TAG, "Create " + this.getClass().getName() + " version=" + BuildConfig.VERSION_NAME);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
String theme = prefs.getString("theme", "light");
setTheme("light".equals(theme) ? R.style.AppThemeLight : R.style.AppThemeDark);


+ 1
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -129,7 +129,7 @@ public class ServiceSynchronize extends LifecycleService {
@Override
public void onCreate() {
Log.i(Helper.TAG, "Service create");
Log.i(Helper.TAG, "Service create version=" + BuildConfig.VERSION_NAME);
super.onCreate();
startForeground(NOTIFICATION_SYNCHRONIZE, getNotificationService(0, 0, 0).build());


Loading…
Cancel
Save