mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Per Matt, fix use of FieldLabelProvider since it is not actually available to apps as a public API
git-svn-id: https://zxing.googlecode.com/svn/trunk@555 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
3371fdb4d3
commit
f14d648ee0
|
@ -25,7 +25,6 @@ import net.rim.device.api.ui.DrawStyle;
|
|||
import net.rim.device.api.ui.Field;
|
||||
import net.rim.device.api.ui.FieldChangeListener;
|
||||
import net.rim.device.api.ui.Manager;
|
||||
import net.rim.device.api.ui.FieldLabelProvider;
|
||||
import net.rim.device.api.ui.component.ButtonField;
|
||||
import net.rim.device.api.ui.component.LabelField;
|
||||
import net.rim.device.api.ui.container.MainScreen;
|
||||
|
@ -65,7 +64,8 @@ final class HistoryScreen extends MainScreen {
|
|||
public void fieldChanged(Field field, int context) {
|
||||
if (field instanceof ButtonField) {
|
||||
BrowserSession browserSession = Browser.getDefaultSession();
|
||||
browserSession.displayPage(((FieldLabelProvider) field).getLabel());
|
||||
// This cannot be weakened to FieldLabelProvider -- not a public API
|
||||
browserSession.displayPage(((ButtonField) field).getLabel());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue