Added account name to unified widget

This commit is contained in:
M66B
2019-07-26 12:32:35 +02:00
parent f5ca9277c3
commit 1e30425bc3
6 changed files with 101 additions and 42 deletions

View File

@@ -19,16 +19,12 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.widget.RemoteViewsService;
public class WidgetUnifiedService extends RemoteViewsService {
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
return new WidgetUnifiedRemoteViewsFactory(
this.getApplicationContext(),
intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID));
return new WidgetUnifiedRemoteViewsFactory(this.getApplicationContext(), intent);
}
}