Add default value to People Space flags.

Change-Id: Idd6e7c3ef432ee6529d8c9fae740d01224080c18
Test: Boot device without flags and check behaviour.
Bug: 169783793
This commit is contained in:
Flavio Fiszman
2020-10-23 10:34:45 +01:00
parent ec820fd42c
commit 46974b130e
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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();