aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/lockclock/weather/ExternalWeatherUpdateReceiver.java
blob: f82d73d9f003d0b57dabaadbc7445668255f95af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.cyanogenmod.lockclock.weather;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ExternalWeatherUpdateReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        final String action = intent.getAction();
        if ("com.cyanogenmod.lockclock.action.REQUEST_WEATHER_UPDATE".equals(action)) {
            context.startService(new Intent().setClass(context, WeatherUpdateService.class));
        }
    }

}