1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

Merge branch 'master' into 3d

This commit is contained in:
Nikolay Pultsin 2011-01-22 23:15:22 +00:00
commit 9530e55f77
2 changed files with 11 additions and 6 deletions

View file

@ -33,7 +33,10 @@ public final class ZLEnumOption<T extends Enum<T>> extends ZLOption {
if (!myIsSynchronized) {
final String value = getConfigValue(null);
if (value != null) {
myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
try {
myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
} catch (Throwable t) {
}
}
myIsSynchronized = true;
}

View file

@ -178,11 +178,13 @@ public class ZLAndroidWidget extends View implements View.OnLongClickListener {
shift += size;
}
// TODO: set color
myPaint.setColor(Color.rgb(127, 127, 127));
if (horizontal) {
canvas.drawLine(shift, 0, shift, h + 1, myPaint);
} else {
canvas.drawLine(0, shift, w + 1, shift, myPaint);
if (shift > 0 && shift < size) {
myPaint.setColor(Color.rgb(127, 127, 127));
if (horizontal) {
canvas.drawLine(shift, 0, shift, h + 1, myPaint);
} else {
canvas.drawLine(0, shift, w + 1, shift, myPaint);
}
}
break;
case paper3d: