mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
parent
ac91b2b5b6
commit
68c45f6831
@ -114,7 +114,7 @@ dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.0.2'
|
||||
implementation 'com.google.android.material:material:1.0.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
||||
implementation 'com.github.vanniktech.Emoji:emoji-twitter:182e1ff4f4'
|
||||
implementation 'com.github.vanniktech:Emoji:746caa4623'
|
||||
implementation 'org.michaelevans.colorart:library:0.0.3'
|
||||
implementation "android.arch.work:work-runtime:${workVersion}"
|
||||
implementation "android.arch.work:work-rxjava2:${workVersion}"
|
||||
|
@ -463,9 +463,11 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
emojiPopup = EmojiPopup.Builder.fromRootView(view).setOnEmojiPopupShownListener(new OnEmojiPopupShownListener() {
|
||||
@Override
|
||||
public void onEmojiPopupShown() {
|
||||
if (getResources() != null) {
|
||||
smileyButton.setColorFilter(getResources().getColor(R.color.colorPrimary),
|
||||
PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
}
|
||||
}).setOnEmojiPopupDismissListener(new OnEmojiPopupDismissListener() {
|
||||
@Override
|
||||
public void onEmojiPopupDismiss() {
|
||||
|
@ -18,11 +18,13 @@
|
||||
*/
|
||||
package com.nextcloud.talk.controllers.base;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import com.bluelinelabs.conductor.Controller;
|
||||
import com.nextcloud.talk.application.NextcloudTalkApplication;
|
||||
import com.nextcloud.talk.controllers.AccountVerificationController;
|
||||
@ -47,6 +49,8 @@ public abstract class BaseController extends ButterKnifeController {
|
||||
private static final String TAG = "BaseController";
|
||||
@Inject
|
||||
AppPreferences appPreferences;
|
||||
@Inject
|
||||
Context context;
|
||||
|
||||
protected BaseController() {
|
||||
cleanTempCertPreference();
|
||||
@ -109,6 +113,15 @@ public abstract class BaseController extends ButterKnifeController {
|
||||
super.onAttach(view);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetach(@NonNull View view) {
|
||||
super.onDetach(view);
|
||||
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
if (imm != null) {
|
||||
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
protected void setTitle() {
|
||||
Controller parentController = getParentController();
|
||||
while (parentController != null) {
|
||||
|
@ -23,22 +23,21 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/emojis_pager"
|
||||
android:id="@+id/emojiViewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/emoji_divider" />
|
||||
android:layout_above="@+id/emojiViewDivider" />
|
||||
|
||||
<View
|
||||
android:id="@+id/emoji_divider"
|
||||
android:id="@+id/emojiViewDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_above="@id/emojis_tab"/>
|
||||
android:layout_above="@id/emojiViewTab"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/emojis_tab"
|
||||
android:id="@+id/emojiViewTab"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:orientation="horizontal" />
|
||||
|
||||
</RelativeLayout>
|
@ -40,7 +40,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:imeOptions="actionDone|flagNoFullscreen"
|
||||
android:imeOptions="actionDone"
|
||||
android:layout_toStartOf="@id/sendButtonSpace"
|
||||
android:inputType="textAutoCorrect|textMultiLine|textCapSentences"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user