diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index d3b8a94b0..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Screenshots and screen recordings** -If applicable, add screenshots (and screen recordings, if possible) to help explain your problem. - -**Version** -Megalodon version: [e.g. v1.1.4+fork.#] - -**Additional context** -- Does this issue also occur with the respective upstream release? (Please test using the respective `upstream-xxxxxx.apk` provided in [Releases](https://github.com/sk22/megalodon/releases)) No / Yes (`mastodon#…`) - - > In this case, please consider filing an [upstream bug report](https://github.com/mastodon/mastodon-android/issues) instead. If this bug is seriously impacting your usage or you think I might want to try to fix it for Megalodon, feel free to still create this issue! - -**Crash log** -If you know your way around Android development tools, please consider attaching a crash log, if possible. diff --git a/.github/ISSUE_TEMPLATE/feature-ui-request.md b/.github/ISSUE_TEMPLATE/feature-ui-request.md deleted file mode 100644 index 7a56c359a..000000000 --- a/.github/ISSUE_TEMPLATE/feature-ui-request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature/UI request -about: Suggest an idea for this project -title: '' -labels: feature -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -If applicable: a clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/something-else.md b/.github/ISSUE_TEMPLATE/something-else.md deleted file mode 100644 index 995600f1e..000000000 --- a/.github/ISSUE_TEMPLATE/something-else.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: It's something else… -about: Issues that can't be categorized as feature requests or bug reports -title: '' -labels: '' -assignees: '' - ---- - - diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java index ca33aefd9..c1d95b4f6 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java @@ -208,6 +208,9 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene } getChildFragmentManager().beginTransaction().hide(fragmentForTab(currentTab)).show(newFragment).commit(); maybeTriggerLoading(newFragment); +// if(tab == currentTab && tab == R.id.tab_search){ +// searchFragment.selectSearch(); +// } currentTab=tab; ((FragmentStackActivity)getActivity()).invalidateSystemBarColors(this); } @@ -235,6 +238,11 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene new AccountSwitcherSheet(getActivity()).show(); return true; } + if(tab==R.id.tab_search){ + searchFragment.selectSearch(); + onTabSelected(R.id.tab_search); + } + return false; } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverFragment.java index b67c7f5da..c13c98c6c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverFragment.java @@ -2,6 +2,8 @@ package org.joinmastodon.android.fragments.discover; import android.app.Fragment; import android.app.FragmentTransaction; +import android.content.Context; +import android.hardware.input.InputManager; import android.os.Build; import android.os.Bundle; import android.text.Editable; @@ -17,6 +19,7 @@ import android.widget.ImageButton; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; +import android.widget.Toast; import org.joinmastodon.android.BuildConfig; import org.joinmastodon.android.GlobalUserPreferences; @@ -358,4 +361,10 @@ public class DiscoverFragment extends AppKitFragment implements ScrollableToTop, return position; } } + + public void selectSearch(){ + searchEdit.requestFocus(); + onSearchEditFocusChanged(searchEdit, true); + getActivity().getSystemService(InputMethodManager.class).showSoftInput(searchEdit, 0); + } }