reduce by action bar height estimate

pull/11/head
Ahmet Inan 2024-05-12 08:26:18 +02:00
rodzic 21ac7ea2f5
commit f7ac973153
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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);