Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
651547ef
Commit
651547ef
authored
Jan 26, 2017
by
tonymanou
Committed by
topjohnwu
Jan 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix raw use of generics warnings
parent
b4d95977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
FABBehavior.java
...src/main/java/com/topjohnwu/magisk/utils/FABBehavior.java
+4
-3
No files found.
app/src/main/java/com/topjohnwu/magisk/utils/FABBehavior.java
View file @
651547ef
...
...
@@ -25,7 +25,8 @@ import java.util.List;
* Remember to use the correct namespace for the fab:
* xmlns:app="http://schemas.android.com/apk/res-auto"
*/
public
class
FABBehavior
extends
CoordinatorLayout
.
Behavior
{
public
class
FABBehavior
extends
CoordinatorLayout
.
Behavior
<
View
>
{
private
float
mTranslationY
;
public
FABBehavior
(
Context
context
,
AttributeSet
attrs
)
{
...
...
@@ -74,11 +75,11 @@ public class FABBehavior extends CoordinatorLayout.Behavior {
private
float
getTranslationY
(
CoordinatorLayout
parent
,
View
child
)
{
float
minOffset
=
0.0
F
;
List
dependencies
=
parent
.
getDependencies
(
child
);
List
<
View
>
dependencies
=
parent
.
getDependencies
(
child
);
int
i
=
0
;
for
(
int
z
=
dependencies
.
size
();
i
<
z
;
++
i
)
{
View
view
=
(
View
)
dependencies
.
get
(
i
);
View
view
=
dependencies
.
get
(
i
);
if
(
view
instanceof
Snackbar
.
SnackbarLayout
&&
parent
.
doViewsOverlap
(
child
,
view
))
{
minOffset
=
Math
.
min
(
minOffset
,
ViewCompat
.
getTranslationY
(
view
)
-
(
float
)
view
.
getHeight
());
}
...
...
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