Incorporate feedback
This commit is contained in:
parent
fb5fb2553b
commit
0a3a91436e
4 changed files with 6 additions and 5 deletions
|
@ -587,12 +587,12 @@ public class K9 extends Application {
|
|||
|
||||
private void updateMailListWidget() {
|
||||
try {
|
||||
MessageListWidgetProvider.updateMailViewList(K9.this);
|
||||
} catch (Exception e) {
|
||||
MessageListWidgetProvider.triggerMessageListWidgetUpdate(K9.this);
|
||||
} catch (RuntimeException e) {
|
||||
if (BuildConfig.DEBUG) {
|
||||
throw e;
|
||||
} else if (K9.DEBUG) {
|
||||
Log.e(LOG_TAG, "Error whiile updating mail list widget", e);
|
||||
Log.e(LOG_TAG, "Error while updating message list widget", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,6 +94,7 @@ public class MessageListRemoteViewFactory implements RemoteViewsService.RemoteVi
|
|||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
// Implement interface
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -19,7 +19,7 @@ public class MessageListWidgetProvider extends AppWidgetProvider {
|
|||
private static String ACTION_UPDATE_MESSAGE_LIST = "UPDATE_MESSAGE_LIST";
|
||||
|
||||
|
||||
public static void updateMailViewList(Context context) {
|
||||
public static void triggerMessageListWidgetUpdate(Context context) {
|
||||
Context appContext = context.getApplicationContext();
|
||||
AppWidgetManager widgetManager = AppWidgetManager.getInstance(appContext);
|
||||
ComponentName widget = new ComponentName(appContext, MessageListWidgetProvider.class);
|
||||
|
|
|
@ -8,6 +8,6 @@ import android.widget.RemoteViewsService;
|
|||
public class MessageListWidgetService extends RemoteViewsService {
|
||||
@Override
|
||||
public RemoteViewsFactory onGetViewFactory(Intent intent) {
|
||||
return new MessageListRemoteViewFactory(this.getApplicationContext());
|
||||
return new MessageListRemoteViewFactory(getApplicationContext());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue