Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
67793366
Commit
67793366
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
parent
1ea71464
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+0
-21
0 additions, 21 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
with
0 additions
and
21 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+
0
−
21
View file @
67793366
...
...
@@ -77,7 +77,6 @@ import org.videolan.vlc.util.FileUtils;
import
org.videolan.vlc.util.MediaLibraryItemComparator
;
import
java.util.List
;
import
java.util.concurrent.atomic.AtomicInteger
;
public
class
UiTools
{
private
static
final
String
TAG
=
"VLC/UiTools"
;
...
...
@@ -88,8 +87,6 @@ public class UiTools {
public
static
final
int
ITEM_SELECTION_ON
=
ContextCompat
.
getColor
(
VLCApplication
.
getAppContext
(),
R
.
color
.
orange200transparent
);
}
private
static
final
AtomicInteger
sNextGeneratedId
=
new
AtomicInteger
(
1
);
private
static
final
Handler
sHandler
=
new
Handler
(
Looper
.
getMainLooper
());
public
static
final
int
DELETE_DURATION
=
3000
;
...
...
@@ -182,24 +179,6 @@ public class UiTools {
}
}
/**
* Generate a value suitable for use in {@link #setId(int)}.
* This value will not collide with ID values generated at build time by aapt for R.id.
*
* @return a generated ID value
*/
public
static
int
generateViewId
()
{
for
(;;)
{
final
int
result
=
sNextGeneratedId
.
get
();
// aapt-generated IDs have the high byte nonzero; clamp to the range under that.
int
newValue
=
result
+
1
;
if
(
newValue
>
0x00FFFFFF
)
newValue
=
1
;
// Roll over to 1, not 0.
if
(
sNextGeneratedId
.
compareAndSet
(
result
,
newValue
))
{
return
result
;
}
}
}
public
static
void
setViewVisibility
(
View
v
,
int
visibility
)
{
if
(
v
!=
null
)
v
.
setVisibility
(
visibility
);
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
4371413d
·
7 years ago
mentioned in commit
4371413d
mentioned in commit 4371413df99cb033fa18ead390ade3d0fadf5756
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment