* commit 'fcc602092456d54b6f851e987f2983360dd126c5': End of Life screen for Email
This commit is contained in:
commit
36478c8ca8
@ -30,4 +30,10 @@
|
||||
<!-- Boolean value indicating whether we should show the OAuth option on initial account setup
|
||||
(not settings) -->
|
||||
<bool name="skip_oauth_on_setup">false</bool>
|
||||
|
||||
<!-- the email application reconciles accounts on startup with the account manager -->
|
||||
<bool name="reconcile_accounts">true</bool>
|
||||
|
||||
<!-- the email application starts services -->
|
||||
<bool name="enable_services">true</bool>
|
||||
</resources>
|
@ -104,7 +104,6 @@ import com.android.emailcommon.service.IEmailService;
|
||||
import com.android.emailcommon.service.SearchParams;
|
||||
import com.android.emailcommon.utility.AttachmentUtilities;
|
||||
import com.android.emailcommon.utility.EmailAsyncTask;
|
||||
import com.android.emailcommon.utility.IntentUtilities;
|
||||
import com.android.emailcommon.utility.Utility;
|
||||
import com.android.ex.photo.provider.PhotoContract;
|
||||
import com.android.mail.preferences.MailPrefs;
|
||||
@ -378,6 +377,7 @@ public class EmailProvider extends ContentProvider
|
||||
private final Set<SyncRequestMessage> mDelayedSyncRequests = new HashSet<SyncRequestMessage>();
|
||||
|
||||
private static void reconcileAccountsAsync(final Context context) {
|
||||
if (context.getResources().getBoolean(R.bool.reconcile_accounts)) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@ -385,6 +385,7 @@ public class EmailProvider extends ContentProvider
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public static Uri uiUri(String type, long id) {
|
||||
return Uri.parse(uiUriString(type, id));
|
||||
|
@ -28,6 +28,7 @@ import android.os.Bundle;
|
||||
|
||||
import com.android.email.NotificationController;
|
||||
import com.android.email.Preferences;
|
||||
import com.android.email.R;
|
||||
import com.android.email.provider.EmailProvider;
|
||||
import com.android.email.service.AttachmentService;
|
||||
import com.android.email.service.EmailServiceUtils;
|
||||
@ -84,6 +85,7 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity {
|
||||
* UI thread (or lifecycle entry points.)
|
||||
*/
|
||||
public static void setServicesEnabledAsync(final Context context) {
|
||||
if (context.getResources().getBoolean(R.bool.enable_services)) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@ -91,6 +93,7 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called throughout the application when the number of accounts has changed. This method
|
||||
|
Loading…
Reference in New Issue
Block a user