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

Commit 11abba40 authored by Flavio Fiszman's avatar Flavio Fiszman Committed by Android (Google) Code Review
Browse files

Merge "Remove PeopleSpace icon, enable widget by default."

parents b37c18a5 d4870653
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -570,15 +570,10 @@
        <!-- People Space UI Screen -->
        <activity android:name=".people.PeopleSpaceActivity"
            android:label="People"
            android:icon="@drawable/ic_music_note"
            android:exported="true"
            android:enabled="false"
            android:theme="@android:style/Theme.Material.NoActionBar"
            android:launchMode="singleInstance">
            android:theme="@android:style/Theme.Material.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

+1 −16
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ import com.android.systemui.dagger.ContextComponentHelper;
import com.android.systemui.dagger.GlobalRootComponent;
import com.android.systemui.dagger.SysUIComponent;
import com.android.systemui.dump.DumpManager;
import com.android.systemui.people.PeopleSpaceActivity;
import com.android.systemui.people.widget.PeopleSpaceWidgetProvider;
import com.android.systemui.shared.system.ThreadedRendererCompat;
import com.android.systemui.util.NotificationChannels;
@@ -126,26 +125,12 @@ public class SystemUIApplication extends Application implements
                            mServices[i].onBootCompleted();
                        }
                    }
                    // If flag SHOW_PEOPLE_SPACE is true, enable People Space launcher icon.
                    // 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, 0);
                        context.getPackageManager().setComponentEnabledSetting(
                                new ComponentName(context, PeopleSpaceActivity.class),
                                showPeopleSpace == 1
                                        ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED
                                        : PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
                                PackageManager.DONT_KILL_APP);
                    } catch (Exception e) {
                        Log.w(TAG, "Error enabling People Space launch icon:", e);
                    }

                    // If SHOW_PEOPLE_SPACE is true, enable People Space widget provider.
                    // 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, 0);
                                Settings.Global.SHOW_PEOPLE_SPACE, 1);
                        context.getPackageManager().setComponentEnabledSetting(
                                new ComponentName(context, PeopleSpaceWidgetProvider.class),
                                showPeopleSpace == 1