package com.hotbitmapgg.moequest.service;
import com.hotbitmapgg.moequest.R;
import com.hotbitmapgg.moequest.module.commonality.MainActivity;
import com.hotbitmapgg.moequest.utils.HeadsUpUtils;
import com.hotbitmapgg.moequest.utils.PreferencesLoader;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* Created by hcc on 16/6/25 18:05
* 100332338@qq.com
*/
public class AlarmReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
PreferencesLoader loader = new PreferencesLoader(context);
if (loader.getBoolean(R.string.action_notifiable, true)) {
HeadsUpUtils.show(context, MainActivity.class,
context.getString(R.string.headsup_title),
context.getString(R.string.headsup_content),
R.mipmap.ic_launcher, R.drawable.bow_tie, 123123);
}
}
}