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
1c9017ae
Commit
1c9017ae
authored
Mar 15, 2018
by
aniketsingh03
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
daabc489
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-0
AddMembersActivity.kt
...android/createChannel/addMembers/ui/AddMembersActivity.kt
+24
-0
activity_add_members.xml
app/src/main/res/layout/activity_add_members.xml
+1
-1
strings.xml
app/src/main/res/values/strings.xml
+2
-2
No files found.
app/src/main/AndroidManifest.xml
View file @
1c9017ae
...
...
@@ -54,6 +54,10 @@
android:theme=
"@style/AppTheme"
android:windowSoftInputMode=
"stateAlwaysHidden"
/>
<activity
android:name=
".createChannel.addMembers.ui.AddMembersActivity"
android:theme=
"@style/AppTheme"
android:windowSoftInputMode=
"stateAlwaysHidden"
/>
<activity
android:name=
".chatroom.ui.PinnedMessagesActivity"
android:theme=
"@style/AppTheme"
...
...
app/src/main/java/chat/rocket/android/createChannel/addMembers/ui/AddMembersActivity.kt
View file @
1c9017ae
package
chat.rocket.android.createChannel.addMembers.ui
import
android.os.Bundle
import
android.support.v7.app.AppCompatActivity
import
chat.rocket.android.R
import
chat.rocket.android.createChannel.addMembers.presentation.AddMembersPresenter
import
chat.rocket.android.createChannel.addMembers.presentation.AddMembersView
import
com.jakewharton.rxbinding2.widget.RxTextView
import
kotlinx.android.synthetic.main.activity_create_new_channel.*
import
kotlinx.android.synthetic.main.layout_toolbar.*
import
javax.inject.Inject
class
AddMembersActivity
:
AppCompatActivity
(),
AddMembersView
{
...
...
@@ -28,4 +33,23 @@ class AddMembersActivity : AppCompatActivity(), AddMembersView {
@Inject
lateinit
var
presenter
:
AddMembersPresenter
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setUpToolBar
()
}
private
fun
setUpToolBar
(){
toolbar_title
.
text
=
getString
(
R
.
string
.
title_add_members
)
toolbar_action_text
.
text
=
getString
(
R
.
string
.
action_select_members
)
supportActionBar
?.
setDisplayHomeAsUpEnabled
(
true
)
RxTextView
.
textChanges
(
channel_name_edit_text
).
subscribe
{
text
->
toolbar_action_text
.
isEnabled
=
text
.
isNotEmpty
()
if
(
text
.
isEmpty
())
toolbar_action_text
.
alpha
=
0.8f
else
toolbar_action_text
.
alpha
=
1.0f
}
}
}
\ No newline at end of file
app/src/main/res/layout/activity_add_members.xml
View file @
1c9017ae
...
...
@@ -26,7 +26,7 @@
android:layout_height=
"wrap_content"
android:layout_margin=
"8dp"
android:backgroundTint=
"@color/colorLightTheme"
android:hint=
"@string/msg_search"
/>
android:hint=
"@string/msg_search"
/>
<View
android:id=
"@+id/separator_1"
...
...
app/src/main/res/values/strings.xml
View file @
1c9017ae
...
...
@@ -25,6 +25,8 @@
<string
name=
"action_logout"
>
Logout
</string>
<string
name=
"action_files"
>
Files
</string>
<string
name=
"action_confirm_password"
>
Confirm Password Change
</string>
<string
name=
"action_create_new_channel"
>
Create
</string>
<string
name=
"action_select_members"
>
Done
</string>
<!-- Settings List -->
<string-array
name=
"settings_actions"
>
...
...
@@ -98,8 +100,6 @@
<string
name=
"action_msg_star"
>
Star Message
</string>
<string
name=
"action_msg_share"
>
Share
</string>
<string
name=
"action_title_editing"
>
Editing Message
</string>
<string
name=
"action_create_new_channel"
>
CREATE
</string>
<!-- Permission messages -->
<string
name=
"permission_editing_not_allowed"
>
Editing is not allowed
</string>
...
...
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