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

Commit 5e42dc34 authored by Flavio Fiszman's avatar Flavio Fiszman
Browse files

Stop deleting app widget id because of crash.

Test: manual
Change-Id: I36c1f4be0a48e0965b909b538b1c28a025d51afe
Bug: 175486868
parent 73cc15b5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.app.PendingIntent;
import android.app.people.ConversationChannel;
import android.app.people.IPeopleManager;
import android.app.people.PeopleSpaceTile;
import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
@@ -120,8 +119,7 @@ public class PeopleSpaceUtils {
                        e -> e.getValue().getId().equals(shortcutId)).findFirst();
                if (!entry.isPresent() || shortcutId == null) {
                    if (DEBUG) Log.d(TAG, "Matching conversation not found for shortcut ID");
                    AppWidgetHost host = new AppWidgetHost(context, 0);
                    host.deleteAppWidgetId(appWidgetId);
                    //TODO: Delete app widget id when crash is fixed (b/175486868)
                    continue;
                }
                PeopleSpaceTile tile = entry.get().getValue();