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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user