From d3de1b6816a2722c09fc36bd963d7b9ef25636c3 Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Wed, 29 Aug 2018 13:54:41 +0300 Subject: [PATCH] remove test activity for editor view --- app/src/main/AndroidManifest.xml | 2 - .../thmmy/mthmmy/activities/TestEditView.java | 53 ------------------- .../mthmmy/activities/main/MainActivity.java | 2 - .../res/layout/activity_test_edit_view.xml | 24 --------- 4 files changed, 81 deletions(-) delete mode 100644 app/src/main/java/gr/thmmy/mthmmy/activities/TestEditView.java delete mode 100644 app/src/main/res/layout/activity_test_edit_view.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7a16cb8c..2cb20bf0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -144,8 +144,6 @@ - - \ No newline at end of file diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/TestEditView.java b/app/src/main/java/gr/thmmy/mthmmy/activities/TestEditView.java deleted file mode 100644 index 657143da..00000000 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/TestEditView.java +++ /dev/null @@ -1,53 +0,0 @@ -package gr.thmmy.mthmmy.activities; - -import android.os.Bundle; -import android.support.v7.app.AppCompatActivity; -import android.view.View; -import android.view.inputmethod.InputConnection; - -import gr.thmmy.mthmmy.R; -import gr.thmmy.mthmmy.utils.EditorView; -import gr.thmmy.mthmmy.utils.EmojiKeyboard; - -public class TestEditView extends AppCompatActivity implements EmojiKeyboard.EmojiKeyboardOwner { - EmojiKeyboard emojiKeyboard; - EditorView editorView; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_test_edit_view); - - editorView = findViewById(R.id.editor_view); - emojiKeyboard = findViewById(R.id.emoji_keyboard); - - InputConnection ic = editorView.getInputConnection(); - setEmojiKeyboardInputConnection(ic); - editorView.setEmojiKeyboardOwner(this); - } - - @Override - public void setEmojiKeyboardVisible(boolean visible) { - emojiKeyboard.setVisibility(visible ? View.VISIBLE : View.GONE); - } - - @Override - public boolean isEmojiKeyboardVisible() { - return emojiKeyboard.getVisibility() == View.VISIBLE; - } - - @Override - public void setEmojiKeyboardInputConnection(InputConnection ic) { - emojiKeyboard.setInputConnection(ic); - } - - @Override - public void onBackPressed() { - if (emojiKeyboard.getVisibility() == View.VISIBLE) { - emojiKeyboard.setVisibility(View.GONE); - editorView.updateEmojiKeyboardVisibility(); - } else { - super.onBackPressed(); - } - } -} diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java index 7f515e6d..59d686a6 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java @@ -17,7 +17,6 @@ import java.util.List; import gr.thmmy.mthmmy.R; import gr.thmmy.mthmmy.activities.LoginActivity; -import gr.thmmy.mthmmy.activities.TestEditView; import gr.thmmy.mthmmy.activities.board.BoardActivity; import gr.thmmy.mthmmy.activities.downloads.DownloadsActivity; import gr.thmmy.mthmmy.activities.main.forum.ForumFragment; @@ -120,7 +119,6 @@ public class MainActivity extends BaseActivity implements RecentFragment.RecentF Toast.makeText(getBaseContext(), "Press back again to exit!" , Toast.LENGTH_SHORT).show(); } - startActivity(new Intent(this, TestEditView.class)); mBackPressed = System.currentTimeMillis(); } diff --git a/app/src/main/res/layout/activity_test_edit_view.xml b/app/src/main/res/layout/activity_test_edit_view.xml deleted file mode 100644 index cd65173f..00000000 --- a/app/src/main/res/layout/activity_test_edit_view.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - \ No newline at end of file