[Android] enclosed check for FScrollPane drawOverlay

This commit is contained in:
Anthony Calosa
2021-03-01 17:50:44 +08:00
parent 92c6ab27a0
commit d622dc773f

View File

@@ -155,6 +155,7 @@ public abstract class FScrollPane extends FContainer {
@Override @Override
protected void drawOverlay(Graphics g) { protected void drawOverlay(Graphics g) {
try {
boolean isFieldZoneView = toString().contains("VField")||toString().contains("VZoneDisplay"); boolean isFieldZoneView = toString().contains("VField")||toString().contains("VZoneDisplay");
//TODO: Consider other ways to indicate scroll potential that fade in and out based on input //TODO: Consider other ways to indicate scroll potential that fade in and out based on input
//draw triangles indicating scroll potential //draw triangles indicating scroll potential
@@ -182,6 +183,9 @@ public abstract class FScrollPane extends FContainer {
float y = getHeight() - INDICATOR_MARGIN; float y = getHeight() - INDICATOR_MARGIN;
g.fillTriangle(INDICATOR_COLOR, x, y, x - INDICATOR_SIZE, y - INDICATOR_SIZE, x + INDICATOR_SIZE, y - INDICATOR_SIZE); g.fillTriangle(INDICATOR_COLOR, x, y, x - INDICATOR_SIZE, y - INDICATOR_SIZE, x + INDICATOR_SIZE, y - INDICATOR_SIZE);
} }
} catch (Exception e) {
e.printStackTrace();
}
} }
//allow overriding to adjust what scroll positions are restored after layout //allow overriding to adjust what scroll positions are restored after layout