Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
b7f75bfe
Commit
b7f75bfe
authored
Sep 12, 2019
by
皮皮蟹
Committed by
Evan W. Patton
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AssetList.java
parent
2e1118b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
appinventor/appengine/src/com/google/appinventor/client/explorer/youngandroid/AssetList.java
...e/appinventor/client/explorer/youngandroid/AssetList.java
+6
-8
No files found.
appinventor/appengine/src/com/google/appinventor/client/explorer/youngandroid/AssetList.java
View file @
b7f75bfe
...
@@ -110,17 +110,15 @@ public class AssetList extends Composite implements ProjectChangeListener {
...
@@ -110,17 +110,15 @@ public class AssetList extends Composite implements ProjectChangeListener {
nodeName
.
length
());
nodeName
.
length
());
String
fileSuffix
=
node
.
getProjectId
()
+
"/"
+
node
.
getFileId
();
String
fileSuffix
=
node
.
getProjectId
()
+
"/"
+
node
.
getFileId
();
String
treeItemText
=
"<span style='cursor: pointer'>"
+
nodeName
+
"</span>"
;
String
treeItemText
=
"<span style='cursor: pointer'>"
;
if
(
StorageUtil
.
isImageFile
(
fileSuffix
))
{
if
(
StorageUtil
.
isImageFile
(
fileSuffix
))
{
Image
mediaIcon
=
new
Image
(
images
.
mediaIconImg
());
treeItemText
+=
new
Image
(
images
.
mediaIconImg
());
treeItemText
=
"<span>"
+
mediaIcon
+
nodeName
+
"</span>"
;
}
else
if
(
StorageUtil
.
isAudioFile
(
fileSuffix
))
{
}
else
if
(
StorageUtil
.
isAudioFile
(
fileSuffix
))
{
Image
mediaIcon
=
new
Image
(
images
.
mediaIconAudio
());
treeItemText
+=
new
Image
(
images
.
mediaIconAudio
());
treeItemText
=
"<span>"
+
mediaIcon
+
nodeName
+
"</span>"
;
}
else
if
(
StorageUtil
.
isVideoFile
(
fileSuffix
))
{
}
else
{
treeItemText
+=
new
Image
(
images
.
mediaIconVideo
());
Image
mediaIcon
=
new
Image
(
images
.
mediaIconVideo
());
treeItemText
=
"<span>"
+
mediaIcon
+
nodeName
+
"</span>"
;
}
}
treeItemText
+=
nodeName
+
"</span>"
;
TreeItem
treeItem
=
new
TreeItem
(
new
HTML
(
treeItemText
));
TreeItem
treeItem
=
new
TreeItem
(
new
HTML
(
treeItemText
));
// keep a pointer from the tree item back to the actual node
// keep a pointer from the tree item back to the actual node
treeItem
.
setUserObject
(
node
);
treeItem
.
setUserObject
(
node
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment