package com.yotadevices.sdk.template;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import com.yotadevices.sdk.R;
/**
* Created by Alexei.Sazonov on 21.05.2014.
*/
abstract class WidgetBuilder {
protected PendingIntent mMaxViewPendingIntent;
abstract RemoteViews apply(Context context);
protected RemoteViews apply(Context context, RemoteViews remoteViews) {
remoteViews.setOnClickPendingIntent(R.id.widget_root, mMaxViewPendingIntent);
return remoteViews;
}
public void setMaxViewActivity(PendingIntent intent) {
mMaxViewPendingIntent = intent;
}
}