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

Commit 46974b13 authored by Flavio Fiszman's avatar Flavio Fiszman
Browse files

Add default value to People Space flags.

Change-Id: Idd6e7c3ef432ee6529d8c9fae740d01224080c18
Test: Boot device without flags and check behaviour.
Bug: 169783793
parent ec820fd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ public class SystemUIApplication extends Application implements
                    // TODO(b/170396074): Remove this when we don't need an icon anymore.
                    try {
                        int showPeopleSpace = Settings.Global.getInt(context.getContentResolver(),
                                Settings.Global.SHOW_PEOPLE_SPACE);
                                Settings.Global.SHOW_PEOPLE_SPACE, 0);
                        context.getPackageManager().setComponentEnabledSetting(
                                new ComponentName(context, PeopleSpaceActivity.class),
                                showPeopleSpace == 1
@@ -128,7 +128,7 @@ public class SystemUIApplication extends Application implements
                    // TODO(b/170396074): Remove this when we don't need a widget anymore.
                    try {
                        int showPeopleSpace = Settings.Global.getInt(context.getContentResolver(),
                                Settings.Global.SHOW_PEOPLE_SPACE);
                                Settings.Global.SHOW_PEOPLE_SPACE, 0);
                        context.getPackageManager().setComponentEnabledSetting(
                                new ComponentName(context, PeopleSpaceWidgetProvider.class),
                                showPeopleSpace == 1
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class PeopleSpaceUtils {
            IPeopleManager peopleManager
    ) throws Exception {
        boolean showAllConversations = Settings.Global.getInt(context.getContentResolver(),
                Settings.Global.PEOPLE_SPACE_CONVERSATION_TYPE) == 0;
                Settings.Global.PEOPLE_SPACE_CONVERSATION_TYPE, 0) == 0;
        List<ConversationChannelWrapper> conversations =
                notificationManager.getConversations(
                        !showAllConversations /* priority only */).getList();