diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java
index 32b43eb3..844ee182 100644
--- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java
+++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java
@@ -26,7 +26,9 @@ import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.TabLayout;
+import android.support.v4.view.GravityCompat;
import android.support.v4.view.ViewPager;
+import android.support.v4.widget.DrawerLayout;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextUtils;
@@ -314,6 +316,23 @@ public class MainActivity extends BaseActivity {
private void setupSearchView() {
searchView.attachNavigationDrawerToMenuButton(drawer.getDrawerLayout());
+ // Setup content descriptions for the different elements in the search view.
+ final View leftAction = searchView.findViewById(R.id.left_action);
+ leftAction.setContentDescription(getString(R.string.action_open_drawer));
+ searchView.setOnFocusChangeListener(new FloatingSearchView.OnFocusChangeListener() {
+ @Override
+ public void onFocus() {
+ leftAction.setContentDescription(getString(R.string.action_close));
+ }
+
+ @Override
+ public void onFocusCleared() {
+ leftAction.setContentDescription(getString(R.string.action_open_drawer));
+ }
+ });
+ View clearButton = searchView.findViewById(R.id.clear_btn);
+ clearButton.setContentDescription(getString(R.string.action_clear));
+
searchView.setOnQueryChangeListener(new FloatingSearchView.OnQueryChangeListener() {
@Override
public void onSearchTextChanged(String oldQuery, String newQuery) {
diff --git a/app/src/main/java/com/keylesspalace/tusky/TimelineFragment.java b/app/src/main/java/com/keylesspalace/tusky/TimelineFragment.java
index 76f8fa46..4f1b6e20 100644
--- a/app/src/main/java/com/keylesspalace/tusky/TimelineFragment.java
+++ b/app/src/main/java/com/keylesspalace/tusky/TimelineFragment.java
@@ -203,7 +203,7 @@ public class TimelineFragment extends SFragment implements
}
private boolean followButtonPresent() {
- return kind != Kind.TAG && kind != Kind.FAVOURITES;
+ return kind != Kind.TAG && kind != Kind.FAVOURITES && kind != Kind.USER;
}
private void jumpToTop() {
diff --git a/app/src/main/res/layout/item_follow.xml b/app/src/main/res/layout/item_follow.xml
index 92f7c30a..e4366a20 100644
--- a/app/src/main/res/layout/item_follow.xml
+++ b/app/src/main/res/layout/item_follow.xml
@@ -25,7 +25,7 @@
android:paddingRight="10dp"
android:paddingLeft="24dp"
android:tint="?attr/colorAccent"
- android:contentDescription="@string/action_follow" />
+ android:contentDescription="@null" />
+ android:contentDescription="@string/action_view_profile" />
+ android:id="@+id/status_container">
+ android:layout_marginBottom="4dp"
+ android:focusable="true">
+ android:paddingRight="8dp" />
+ android:layout_below="@+id/status_content_warning_bar"
+ android:focusable="true" />
+ android:contentDescription="@string/action_view_media" />
+ android:contentDescription="@string/action_view_media" />
@@ -192,7 +193,7 @@
android:layout_weight="1"
android:layout_marginRight="2dp"
android:scaleType="centerCrop"
- android:contentDescription="@null" />
+ android:contentDescription="@string/action_view_media" />
+ android:contentDescription="@string/action_view_media" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 388b948c..9e63f447 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -20,6 +20,7 @@
Notifications
Local
Federated
+ Compose
Thread
#%s
Posts
@@ -72,7 +73,8 @@
Preferences
Favourites
Blocked users
- View thread
+ Thread
+ Media
Open in browser
Submit
Add media
@@ -82,6 +84,8 @@
Mention
NSFW
Options
+ Open drawer
+ Clear
Share toot URL to…
@@ -108,9 +112,9 @@
Finishing Media Upload
Uploading…
- Everyone can see
- Everyone can see, but not on public timelines
- Only followers and mentions can see
+ Everyone can view
+ Everyone can view, but not on public timelines
+ Only followers and mentions can view
Notifications
Edit Notifications