Adds missing content description for the profile avatar in the navigation drawer.

This commit is contained in:
Vavassor 2017-04-14 19:46:33 -04:00
parent 18d5d0152c
commit 77285c9966
2 changed files with 10 additions and 2 deletions

View file

@ -26,9 +26,7 @@ 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;
@ -240,6 +238,9 @@ public class MainActivity extends BaseActivity {
})
.withCompactStyle(true)
.build();
headerResult.getView()
.findViewById(R.id.material_drawer_account_header_current)
.setContentDescription(getString(R.string.action_view_profile));
DrawerImageLoader.init(new AbstractDrawerImageLoader() {
@Override

View file

@ -34,6 +34,7 @@ import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.PATCH;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
@ -113,6 +114,12 @@ public interface MastodonAPI {
@GET("api/v1/accounts/verify_credentials")
Call<Account> accountVerifyCredentials();
@PATCH("api/v1/accounts/update_credentials")
Call<Account> accountUpdateCredentials(
@Field("display_name") String displayName,
@Field("note") String note,
@Field("avatar") String avatar,
@Field("header") String header);
@GET("api/v1/accounts/search")
Call<List<Account>> searchAccounts(
@Query("q") String q,