Merge "Support the toast Window to show on the secondary display."

This commit is contained in:
Jeff Chang
2018-08-17 01:14:51 +00:00
committed by Android (Google) Code Review
7 changed files with 28 additions and 24 deletions

View File

@@ -133,9 +133,10 @@ public class Toast {
String pkg = mContext.getOpPackageName();
TN tn = mTN;
tn.mNextView = mNextView;
final int displayId = mContext.getDisplay().getDisplayId();
try {
service.enqueueToast(pkg, tn, mDuration);
service.enqueueToast(pkg, tn, mDuration, displayId);
} catch (RemoteException e) {
// Empty
}