1package com.android.email.service; 2 3import android.content.BroadcastReceiver; 4import android.content.Context; 5import android.content.Intent; 6 7/** 8 * {@link BroadcastReceiver} for app upgrade. This listens to package replacement (for unbundled 9 * upgrade) and reboot (for OTA upgrade). The code in the {@link EmailBroadcastProcessorService} 10 * disables this receiver after it runs. 11 */ 12public class EmailUpgradeBroadcastReceiver extends BroadcastReceiver { 13 @Override 14 public void onReceive(final Context context, final Intent intent) { 15 EmailBroadcastProcessorService.processUpgradeBroadcastIntent(context); 16 } 17} 18