Revision de43f86a
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/dialogs/RubikDialogTutorial.java | ||
---|---|---|
149 | 149 |
if( window!=null && context!=null ) |
150 | 150 |
{ |
151 | 151 |
DisplayMetrics metrics = context.getResources().getDisplayMetrics(); |
152 |
final float height= metrics.heightPixels; |
|
153 |
|
|
154 | 152 |
WindowManager.LayoutParams params = window.getAttributes(); |
155 | 153 |
params.width = WindowManager.LayoutParams.WRAP_CONTENT; |
156 |
params.height = (int)(0.6f*height);
|
|
154 |
params.height = (int)Math.min( 0.85f*metrics.heightPixels,1.3f*metrics.widthPixels );
|
|
157 | 155 |
window.setAttributes(params); |
158 | 156 |
} |
159 | 157 |
} |
Also available in: Unified diff
Correct height of the tutorial dialog.