Commit 1c9017ae authored by aniketsingh03's avatar aniketsingh03

minor fixes

parent daabc489
......@@ -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"
......
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
......@@ -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"
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment