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

Commit e8685112 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

Remove call_style_set_data_async

Fixes: 409611214
Flag: EXEMPT flag removal
Old Flag: android.widget.flags.call_style_set_data_async
Test: Presubmit

Change-Id: Id9c901b39897cbea71bc1217b8dc06739b009174
parent 24d5f3bc
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
package: "android.widget.flags"
container: "system"

flag {
  name: "call_style_set_data_async"
  namespace: "systemui"
  description: "Offloads caller icon drawable loading to the background thread"
  bug: "293961072"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "drop_non_existing_messages"
+0 −13
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ import android.util.AttributeSet;
import android.view.RemotableViewMethod;
import android.widget.FrameLayout;
import android.widget.RemoteViews;
import android.widget.flags.Flags;

import com.android.internal.R;

@@ -114,10 +113,6 @@ public class CallLayout extends FrameLayout {
     * async version of {@link CallLayout#setLayoutColor}
     */
    public Runnable setLayoutColorAsync(int color) {
        if (!Flags.callStyleSetDataAsync()) {
            return () -> setLayoutColor(color);
        }

        mLayoutColor = color;
        return () -> {};
    }
@@ -139,10 +134,6 @@ public class CallLayout extends FrameLayout {
     * async version of {@link CallLayout#setLargeIcon}
     */
    public Runnable setLargeIconAsync(Icon largeIcon) {
        if (!Flags.callStyleSetDataAsync()) {
            return () -> setLargeIcon(largeIcon);
        }

        mLargeIcon = largeIcon;
        return () -> {};
    }
@@ -168,10 +159,6 @@ public class CallLayout extends FrameLayout {
     * Async implementation for setData
     */
    public Runnable setDataAsync(Bundle extras) {
        if (!Flags.callStyleSetDataAsync()) {
            return () -> setData(extras);
        }

        final Person person = getPerson(extras);
        setUser(person);