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) { if (!myIsSynchronized) {
final String value = getConfigValue(null); final String value = getConfigValue(null);
if (value != null) { if (value != null) {
try {
myValue = (T)T.valueOf(myDefaultValue.getClass(), value); myValue = (T)T.valueOf(myDefaultValue.getClass(), value);
} catch (Throwable t) {
}
} }
myIsSynchronized = true; myIsSynchronized = true;
} }

View file

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