Merge "Support the toast Window to show on the secondary display."
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user