Merge "Show correct error when adding widget with no email accts on device."
This commit is contained in:
commit
e18e8f45da
@ -463,7 +463,7 @@
|
||||
<!-- Email AppWidget definitions -->
|
||||
<activity
|
||||
android:name=".widget.WidgetConfiguration"
|
||||
android:enabled="false"
|
||||
android:enabled="true"
|
||||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge"
|
||||
>
|
||||
<intent-filter
|
||||
|
@ -166,12 +166,6 @@ public class Email extends Application {
|
||||
MailService.actionReschedule(context);
|
||||
}
|
||||
|
||||
pm.setComponentEnabledSetting(
|
||||
new ComponentName(context, WidgetConfiguration.class),
|
||||
enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED :
|
||||
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
|
||||
PackageManager.DONT_KILL_APP);
|
||||
|
||||
// Start/stop the various services depending on whether there are any accounts
|
||||
startOrStopService(enabled, context, new Intent(context, AttachmentDownloadService.class));
|
||||
NotificationController.getInstance(context).watchForMessages(enabled);
|
||||
|
Loading…
Reference in New Issue
Block a user