reduce by action bar height estimate

This commit is contained in:
Ahmet Inan 2024-05-12 08:26:18 +02:00
parent 21ac7ea2f5
commit f7ac973153

View file

@ -591,6 +591,8 @@ public class MainActivity extends AppCompatActivity {
screenWidthDp /= 2;
else
screenHeightDp -= freqPlotHeightDp;
int actionBarHeightDp = 64;
screenHeightDp -= actionBarHeightDp;
int width = scopeBuffer.width;
int height = Math.min(Math.max((width * screenHeightDp) / screenWidthDp, 496), scopeBuffer.height / 2);
scopeBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);