Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
AloqaIM-Android
Commits
7a111525
Commit
7a111525
authored
Aug 28, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update MainActivity.java
parent
5d95c19f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+3
-6
No files found.
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
7a111525
...
...
@@ -4,7 +4,6 @@ import android.os.Bundle;
import
android.support.annotation.Nullable
;
import
android.support.design.widget.Snackbar
;
import
android.support.v4.widget.SlidingPaneLayout
;
import
android.support.v7.graphics.drawable.DrawerArrowDrawable
;
import
android.view.View
;
import
chat.rocket.android.LaunchUtil
;
...
...
@@ -81,8 +80,6 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
}
});
final
DrawerArrowDrawable
drawerArrowDrawable
=
new
DrawerArrowDrawable
(
this
);
toolbar
.
setNavigationIcon
(
drawerArrowDrawable
);
toolbar
.
setNavigationOnClickListener
(
view
->
{
if
(
pane
.
isSlideable
()
&&
!
pane
.
isOpen
())
{
pane
.
openPane
();
...
...
@@ -93,17 +90,17 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
pane
.
setPanelSlideListener
(
new
SlidingPaneLayout
.
PanelSlideListener
()
{
@Override
public
void
onPanelSlide
(
View
panel
,
float
slideOffset
)
{
drawerArrowDrawable
.
set
Progress
(
slideOffset
);
toolbar
.
setNavigationIcon
Progress
(
slideOffset
);
}
@Override
public
void
onPanelOpened
(
View
panel
)
{
drawerArrowDrawable
.
set
VerticalMirror
(
true
);
toolbar
.
setNavigationIcon
VerticalMirror
(
true
);
}
@Override
public
void
onPanelClosed
(
View
panel
)
{
drawerArrowDrawable
.
set
VerticalMirror
(
false
);
toolbar
.
setNavigationIcon
VerticalMirror
(
false
);
closeUserActionContainer
();
}
});
...
...
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