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
a906c68f
Commit
a906c68f
authored
Aug 28, 2017
by
Lucio Maciel
Committed by
GitHub
Aug 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #412 from RocketChat/improvement/ui-fixes
Minor UI fixes
parents
81ef4d99
3915de3d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
7 deletions
+28
-7
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+9
-0
TwoStepAuthFragment.java
...t/android/fragment/server_config/TwoStepAuthFragment.java
+4
-4
SidebarMainFragment.java
.../rocket/android/fragment/sidebar/SidebarMainFragment.java
+7
-3
MessageListAdapter.java
...ket/android/layouthelper/chatroom/MessageListAdapter.java
+1
-0
list_item_normal_message.xml
app/src/main/res/layout/list_item_normal_message.xml
+2
-0
list_item_system_message.xml
app/src/main/res/layout/list_item_system_message.xml
+2
-0
message_inline_embed_url.xml
...-widgets/src/main/res/layout/message_inline_embed_url.xml
+1
-0
colors.xml
rocket-chat-android-widgets/src/main/res/values/colors.xml
+2
-0
No files found.
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
a906c68f
...
@@ -107,6 +107,7 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
...
@@ -107,6 +107,7 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
@Override
@Override
public
void
onPanelClosed
(
View
panel
)
{
public
void
onPanelClosed
(
View
panel
)
{
drawerArrowDrawable
.
setVerticalMirror
(
false
);
drawerArrowDrawable
.
setVerticalMirror
(
false
);
closeUserActionContainer
();
}
}
});
});
}
}
...
@@ -161,6 +162,14 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
...
@@ -161,6 +162,14 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
.
commit
();
.
commit
();
}
}
private
void
closeUserActionContainer
()
{
SidebarMainFragment
sidebarFragment
=
(
SidebarMainFragment
)
getSupportFragmentManager
()
.
findFragmentById
(
R
.
id
.
sidebar_fragment_container
);
if
(
sidebarFragment
!=
null
)
{
sidebarFragment
.
closeUserActionContainer
();
}
}
@Override
@Override
protected
void
onRoomIdUpdated
()
{
protected
void
onRoomIdUpdated
()
{
super
.
onRoomIdUpdated
();
super
.
onRoomIdUpdated
();
...
...
app/src/main/java/chat/rocket/android/fragment/server_config/TwoStepAuthFragment.java
View file @
a906c68f
...
@@ -89,11 +89,11 @@ public class TwoStepAuthFragment extends AbstractServerConfigFragment
...
@@ -89,11 +89,11 @@ public class TwoStepAuthFragment extends AbstractServerConfigFragment
protected
void
onSetupView
()
{
protected
void
onSetupView
()
{
waitingView
=
rootView
.
findViewById
(
R
.
id
.
waiting
);
waitingView
=
rootView
.
findViewById
(
R
.
id
.
waiting
);
final
TextView
twoStepCodeTextView
=
(
TextView
)
rootView
.
findViewById
(
R
.
id
.
two_step_code
);
final
TextView
twoStepCodeTextView
=
rootView
.
findViewById
(
R
.
id
.
two_step_code
);
twoStepCodeTextView
.
requestFocus
();
submitButton
=
rootView
.
findViewById
(
R
.
id
.
btn_two_step_login
);
submitButton
=
rootView
.
findViewById
(
R
.
id
.
btn_two_step_login
);
submitButton
.
setOnClickListener
(
view
->
{
submitButton
.
setOnClickListener
(
v
->
presenter
.
onCode
(
twoStepCodeTextView
.
getText
().
toString
()));
presenter
.
onCode
(
twoStepCodeTextView
.
getText
().
toString
());
});
}
}
}
}
app/src/main/java/chat/rocket/android/fragment/sidebar/SidebarMainFragment.java
View file @
a906c68f
...
@@ -166,12 +166,16 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
...
@@ -166,12 +166,16 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
RxCompoundButton
.
checkedChanges
(
toggleUserAction
)
RxCompoundButton
.
checkedChanges
(
toggleUserAction
)
.
compose
(
bindToLifecycle
())
.
compose
(
bindToLifecycle
())
.
subscribe
(
.
subscribe
(
aBoolean
->
rootView
.
findViewById
(
R
.
id
.
user_action_outer_container
)
this
::
showUserActionContainer
,
.
setVisibility
(
aBoolean
?
View
.
VISIBLE
:
View
.
GONE
),
Logger:
:
report
Logger:
:
report
);
);
}
}
private
void
showUserActionContainer
(
boolean
show
)
{
rootView
.
findViewById
(
R
.
id
.
user_action_outer_container
)
.
setVisibility
(
show
?
View
.
VISIBLE
:
View
.
GONE
);
}
@Override
@Override
public
void
showScreen
()
{
public
void
showScreen
()
{
rootView
.
setVisibility
(
View
.
VISIBLE
);
rootView
.
setVisibility
(
View
.
VISIBLE
);
...
@@ -256,7 +260,7 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
...
@@ -256,7 +260,7 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
});
});
}
}
p
rivate
void
closeUserActionContainer
()
{
p
ublic
void
closeUserActionContainer
()
{
final
CompoundButton
toggleUserAction
=
rootView
.
findViewById
(
R
.
id
.
toggle_user_action
);
final
CompoundButton
toggleUserAction
=
rootView
.
findViewById
(
R
.
id
.
toggle_user_action
);
if
(
toggleUserAction
!=
null
&&
toggleUserAction
.
isChecked
())
{
if
(
toggleUserAction
!=
null
&&
toggleUserAction
.
isChecked
())
{
toggleUserAction
.
setChecked
(
false
);
toggleUserAction
.
setChecked
(
false
);
...
...
app/src/main/java/chat/rocket/android/layouthelper/chatroom/MessageListAdapter.java
View file @
a906c68f
...
@@ -32,6 +32,7 @@ public class MessageListAdapter extends ExtModelListAdapter<Message, PairedMessa
...
@@ -32,6 +32,7 @@ public class MessageListAdapter extends ExtModelListAdapter<Message, PairedMessa
public
MessageListAdapter
(
Context
context
,
String
hostname
)
{
public
MessageListAdapter
(
Context
context
,
String
hostname
)
{
super
(
context
);
super
(
context
);
this
.
hostname
=
hostname
;
this
.
hostname
=
hostname
;
this
.
hasNext
=
true
;
}
}
public
void
setAbsoluteUrl
(
AbsoluteUrl
absoluteUrl
)
{
public
void
setAbsoluteUrl
(
AbsoluteUrl
absoluteUrl
)
{
...
...
app/src/main/res/layout/list_item_normal_message.xml
View file @
a906c68f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:background=
"@android:color/white"
android:theme=
"@style/AppTheme"
>
android:theme=
"@style/AppTheme"
>
<include
layout=
"@layout/list_item_message_newday"
/>
<include
layout=
"@layout/list_item_message_newday"
/>
...
@@ -63,6 +64,7 @@
...
@@ -63,6 +64,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:enabled=
"false"
android:enabled=
"false"
android:textColor=
"@color/color_timestamp"
tools:text=
"12:34"
/>
tools:text=
"12:34"
/>
<View
<View
...
...
app/src/main/res/layout/list_item_system_message.xml
View file @
a906c68f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:background=
"@android:color/white"
android:theme=
"@style/AppTheme"
>
android:theme=
"@style/AppTheme"
>
<include
layout=
"@layout/list_item_message_newday"
/>
<include
layout=
"@layout/list_item_message_newday"
/>
...
@@ -50,6 +51,7 @@
...
@@ -50,6 +51,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:enabled=
"false"
android:enabled=
"false"
android:textColor=
"@color/color_timestamp"
tools:text=
"12:34"
/>
tools:text=
"12:34"
/>
<View
<View
...
...
rocket-chat-android-widgets/src/main/res/layout/message_inline_embed_url.xml
View file @
a906c68f
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_marginTop=
"2dp"
android:layout_marginBottom=
"2dp"
android:layout_marginBottom=
"2dp"
android:textColor=
"@color/color_embed_hostname"
android:enabled=
"false"
/>
android:enabled=
"false"
/>
<TextView
<TextView
...
...
rocket-chat-android-widgets/src/main/res/values/colors.xml
View file @
a906c68f
...
@@ -3,4 +3,6 @@
...
@@ -3,4 +3,6 @@
<color
name=
"color_accent"
>
#FF2D91FA
</color>
<color
name=
"color_accent"
>
#FF2D91FA
</color>
<color
name=
"color_shadow"
>
#FFE6E6E7
</color>
<color
name=
"color_shadow"
>
#FFE6E6E7
</color>
<color
name=
"color_icon_composer"
>
#FFA8A8A8
</color>
<color
name=
"color_icon_composer"
>
#FFA8A8A8
</color>
<color
name=
"color_timestamp"
>
#FFA8A8A8
</color>
<color
name=
"color_embed_hostname"
>
@color/color_timestamp
</color>
</resources>
</resources>
\ No newline at end of file
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