|
|
@@ -5,7 +5,6 @@ import android.appwidget.AppWidgetManager;
|
|
|
import android.appwidget.AppWidgetProvider;
|
|
|
import android.content.Context;
|
|
|
import android.content.Intent;
|
|
|
-import android.util.Log;
|
|
|
import android.widget.RemoteViews;
|
|
|
|
|
|
import com.bumptech.glide.Glide;
|
|
|
@@ -28,6 +27,7 @@ public class LifeplusWidget extends AppWidgetProvider {
|
|
|
// Construct the RemoteViews object
|
|
|
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.lifeplus_widget);
|
|
|
|
|
|
+
|
|
|
Intent mainIntent = new Intent(context, MainActivity.class);
|
|
|
views.setOnClickPendingIntent(R.id.image_view_bi, PendingIntent.getActivity(context, 0, mainIntent, 0));
|
|
|
|
|
|
@@ -51,8 +51,6 @@ public class LifeplusWidget extends AppWidgetProvider {
|
|
|
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
|
|
|
// There may be multiple widgets active, so update all of them
|
|
|
|
|
|
- Log.e("APP# LifeplusWidget | onUpdate", "|" + appWidgetIds.length);
|
|
|
-
|
|
|
for (int appWidgetId : appWidgetIds) {
|
|
|
updateAppWidget(context, appWidgetManager, appWidgetId);
|
|
|
}
|