mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
[Android] enclosed check for FScrollPane drawOverlay
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user