My favorites
▼
|
Sign in
microemu
MicroEmu is a pure Java implementation of Java ME.
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
85
attachment: midp.list.diff
(1.2 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: microemu-midp/src/main/java/org/microemu/device/ui/ListUI.java
===================================================================
--- microemu-midp/src/main/java/org/microemu/device/ui/ListUI.java (revision 2441)
+++ microemu-midp/src/main/java/org/microemu/device/ui/ListUI.java (working copy)
@@ -21,4 +21,6 @@
int size();
+ void set(int elementNum, String stringPart, Image imagePart);
+
}
Index: microemu-midp/src/main/java/javax/microedition/lcdui/List.java
===================================================================
--- microemu-midp/src/main/java/javax/microedition/lcdui/List.java (revision 2441)
+++ microemu-midp/src/main/java/javax/microedition/lcdui/List.java (working copy)
@@ -157,7 +157,11 @@
}
public void set(int elementNum, String stringPart, Image imagePart) {
- choiceGroup.set(elementNum, stringPart, imagePart);
+ if (ui.getClass().getName().equals("org.microemu.android.device.ui.AndroidListUI")) {
+ ((ListUI) ui).set(elementNum, stringPart, imagePart);
+ } else {
+ choiceGroup.set(elementNum, stringPart, imagePart);
+ }
}
public void setFitPolicy(int policy) {
Powered by
Google Project Hosting