Skip to content
Snippets Groups Projects
Commit 4e45dba3 authored by Lynn Yeh's avatar Lynn Yeh Committed by Android (Google) Code Review
Browse files

Merge "Inline notification_row_user_context" into 24D1-dev

parents d4518a1e e9c76efa
No related branches found
No related tags found
No related merge requests found
......@@ -1765,9 +1765,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
*/
public ExpandableNotificationRow(Context context, AttributeSet attrs) {
this(context, attrs, context);
if (com.android.systemui.Flags.notificationRowUserContext()) {
Log.wtf(TAG, "This constructor shouldn't be called");
}
Log.wtf(TAG, "This constructor shouldn't be called");
}
/**
......
......@@ -31,7 +31,6 @@ import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.widget.ImageResolver;
import com.android.internal.widget.LocalImageResolver;
import com.android.internal.widget.MessagingMessage;
import com.android.systemui.Flags;
import java.util.HashSet;
import java.util.List;
......@@ -67,11 +66,7 @@ public class NotificationInlineImageResolver implements ImageResolver {
* @param imageCache The implementation of internal cache.
*/
public NotificationInlineImageResolver(Context context, ImageCache imageCache) {
if (Flags.notificationRowUserContext()) {
mContext = context;
} else {
mContext = context.getApplicationContext();
}
mContext = context;
mImageCache = imageCache;
if (mImageCache != null) {
......
......@@ -60,9 +60,8 @@ public class RowInflaterTask implements InflationTask, AsyncLayoutInflater.OnInf
mInflateOrigin = new Throwable("inflate requested here");
}
mListener = listener;
AsyncLayoutInflater inflater = com.android.systemui.Flags.notificationRowUserContext()
? new AsyncLayoutInflater(context, new RowAsyncLayoutInflater(entry))
: new AsyncLayoutInflater(context);
AsyncLayoutInflater inflater = new AsyncLayoutInflater(context,
new RowAsyncLayoutInflater(entry));
mEntry = entry;
entry.setInflationTask(this);
inflater.inflate(R.layout.status_bar_notification_row, parent, this);
......
......@@ -873,7 +873,6 @@ public class ExpandableNotificationRowTest extends SysuiTestCase {
}
@Test
@EnableFlags(com.android.systemui.Flags.FLAG_NOTIFICATION_ROW_USER_CONTEXT)
public void imageResolver_differentNotificationUser_createsUserContext() throws Exception {
UserHandle user = new UserHandle(33);
Context userContext = new SysuiTestableContext(mContext);
......
......@@ -571,9 +571,7 @@ public class NotificationTestHelper {
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
if (com.android.systemui.Flags.notificationRowUserContext()) {
inflater.setFactory2(new RowInflaterTask.RowAsyncLayoutInflater(entry));
}
inflater.setFactory2(new RowInflaterTask.RowAsyncLayoutInflater(entry));
mRow = (ExpandableNotificationRow) inflater.inflate(
R.layout.status_bar_notification_row,
null /* root */,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment