修复了bug
【ADAS】滑动关闭ADAS,会造成Launcher崩溃 http://jira.zhidaohulian.com/browse/UI-314?jql=project%20%3D%20UI%20AND%20assignee%20in%20(donghongyu)%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC 【Launcher】D系列Launcher崩溃日志 http://jira.zhidaohulian.com/browse/UI-318?jql=project%20%3D%20UI%20AND%20assignee%20in%20(donghongyu)%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC
This commit is contained in:
@@ -104,15 +104,9 @@ public abstract class MapMarkerBaseView extends LinearLayout implements IMarkerV
|
||||
}
|
||||
|
||||
private Bitmap fromView( View view ) {
|
||||
FrameLayout frameLayout = new FrameLayout( view.getContext() );
|
||||
frameLayout.addView( view );
|
||||
frameLayout.setDrawingCacheEnabled( true );
|
||||
processChildView( frameLayout );
|
||||
frameLayout.destroyDrawingCache();
|
||||
frameLayout.measure( View.MeasureSpec.makeMeasureSpec( 0, View.MeasureSpec.UNSPECIFIED ), View.MeasureSpec.makeMeasureSpec( 0, View.MeasureSpec.UNSPECIFIED ) );
|
||||
frameLayout.layout( 0, 0, frameLayout.getMeasuredWidth(), frameLayout.getMeasuredHeight() );
|
||||
view.setDrawingCacheEnabled(true);
|
||||
Bitmap bitmap = null;
|
||||
return ( bitmap = frameLayout.getDrawingCache() ) != null ? bitmap.copy( Bitmap.Config.ARGB_8888, false ) : null;
|
||||
return ( bitmap = view.getDrawingCache() ) != null ? bitmap.copy( Bitmap.Config.ARGB_8888, false ) : null;
|
||||
}
|
||||
|
||||
private void processChildView( View view ) {
|
||||
|
||||
Reference in New Issue
Block a user