mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Apply sync on launch to widgets
This commit is contained in:
@@ -1011,7 +1011,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
intent.removeExtra("refresh");
|
||||
setIntent(intent);
|
||||
|
||||
ServiceUI.sync(this, null);
|
||||
int version = intent.getIntExtra("version", 0);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivityView.this);
|
||||
boolean sync_on_launch = prefs.getBoolean("sync_on_launch", false);
|
||||
if (sync_on_launch || version < 1541)
|
||||
ServiceUI.sync(this, null);
|
||||
}
|
||||
|
||||
String action = intent.getAction();
|
||||
|
||||
Reference in New Issue
Block a user