End of Life screen for Email
b/16843301 This introduces a new build target: EmailGoogleTombstone. Building with a tapas line that includes that target will produce EmailGoogleTombstone.apk. The apk includes the EmailProvider and AttachmentProvider (for migration to Gmail) and an activity that explains to the user where to find their email data. Change-Id: Ib8192b46d9017e04f5c99f5c8e509531198eec07
This commit is contained in:
parent
80982db38b
commit
50591a7be4
|
@ -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,12 +377,14 @@ public class EmailProvider extends ContentProvider
|
|||
private final Set<SyncRequestMessage> mDelayedSyncRequests = new HashSet<SyncRequestMessage>();
|
||||
|
||||
private static void reconcileAccountsAsync(final Context context) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
AccountReconciler.reconcileAccounts(context);
|
||||
}
|
||||
});
|
||||
if (context.getResources().getBoolean(R.bool.reconcile_accounts)) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
AccountReconciler.reconcileAccounts(context);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public static Uri uiUri(String type, long 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,12 +85,14 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity {
|
|||
* UI thread (or lifecycle entry points.)
|
||||
*/
|
||||
public static void setServicesEnabledAsync(final Context context) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
setServicesEnabledSync(context);
|
||||
}
|
||||
});
|
||||
if (context.getResources().getBoolean(R.bool.enable_services)) {
|
||||
EmailAsyncTask.runAsyncParallel(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
setServicesEnabledSync(context);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue