|
|
修改关键界面和wifi输入密码输入框无法复制的问题::
修改如下地方::
/media/doraemon/express/alps_VR_new/frameworks/native/services/surfaceflinger/Layer.cpp::::::::::
bool Layer::setSize(uint32_t w, uint32_t h) {
if (mCurrentState.requested.w == w && mCurrentState.requested.h == h)
return false;
// if(strcmp(getName().string(),"GlobalActions") == 0 ||
// strcmp(getName().string(),"InputMethod") == 0
// ){
if(w>16 && w<=960)w+=960; //zcfdebug++
// }
mCurrentState.requested.w = w;
mCurrentState.requested.h = h;
setTransactionFlags(eTransactionNeeded);
return true;
}
和
bool Layer::setCrop(const Rect& crop) {
if (mCurrentState.requested.crop == crop)
return false;
Rect mycrop(crop);
// if(strcmp(getName().string(),"GlobalActions") == 0 ||
// strcmp(getName().string(),"InputMethod") == 0
// ){
if(mycrop.right>16 && mycrop.right<=960)mycrop.right+=960;//zcfdebug++
// }
mCurrentState.sequence++;
mCurrentState.requested.crop = mycrop;
setTransactionFlags(eTransactionNeeded);
return true;
}
|
|