Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a3a9143 authored by cketti's avatar cketti
Browse files

Incorporate feedback

parent fb5fb255
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
                    }
                }
            }
+1 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@ public class MessageListRemoteViewFactory implements RemoteViewsService.RemoteVi

    @Override
    public void onDestroy() {
        // Implement interface
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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());
    }
}