1f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein/*
2f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * Copyright (C) 2013 The Android Open Source Project
3f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein *
4f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * Licensed under the Apache License, Version 2.0 (the "License");
5f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * you may not use this file except in compliance with the License.
6f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * You may obtain a copy of the License at
7f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein *
8f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein *      http://www.apache.org/licenses/LICENSE-2.0
9f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein *
10f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * Unless required by applicable law or agreed to in writing, software
11f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * distributed under the License is distributed on an "AS IS" BASIS,
12f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * See the License for the specific language governing permissions and
14f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein * limitations under the License.
15f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein */
16f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein
17f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzsteinpackage com.android.calendar;
18f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein
19f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzsteinimport android.content.BroadcastReceiver;
20f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzsteinimport android.content.Context;
21f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzsteinimport android.content.Intent;
22f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein
23f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzsteinpublic class UpgradeReceiver extends BroadcastReceiver {
24f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein    @Override
25f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein    public void onReceive(final Context context, final Intent intent) {
26f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein        Utils.trySyncAndDisableUpgradeReceiver(context);
27f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein    }
28f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein
29f52c64145b6219aeceeb93f4bdb5e2c069bf48a4Sam Blitzstein}