add db indicator
This commit is contained in:
parent
514da53a72
commit
cd46ec4037
1 changed files with 9 additions and 2 deletions
|
|
@ -252,8 +252,15 @@ public class PitchView extends ViewGroup {
|
|||
}
|
||||
|
||||
void updateText() {
|
||||
int end = getEnd();
|
||||
setText(Integer.toString(data.get(end).intValue()) + " dB");
|
||||
// we need to put empty streing to measure text Paint height
|
||||
String str = "";
|
||||
|
||||
if (data.size() > 0) {
|
||||
int end = getEnd();
|
||||
str = Integer.toString(data.get(end).intValue()) + " dB";
|
||||
}
|
||||
|
||||
setText(str);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue