Fixes a few content descriptions and re-titles the Drafts page.

main
Vavassor 7 years ago
parent afcf7f0346
commit a9c90171a3
  1. 2
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java
  2. 2
      app/src/main/res/layout/activity_compose.xml
  3. 2
      app/src/main/res/layout/item_saved_toot.xml
  4. 2
      app/src/main/res/values/strings.xml

@ -1134,13 +1134,13 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
view.setLayoutParams(layoutParams); view.setLayoutParams(layoutParams);
view.setScaleType(ImageView.ScaleType.CENTER_CROP); view.setScaleType(ImageView.ScaleType.CENTER_CROP);
view.setImageBitmap(preview); view.setImageBitmap(preview);
view.setOnClickListener(new View.OnClickListener() { view.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
removeMediaFromQueue(item); removeMediaFromQueue(item);
} }
}); });
view.setContentDescription(getString(R.string.action_delete));
mediaPreviewBar.addView(view); mediaPreviewBar.addView(view);
mediaQueued.add(item); mediaQueued.add(item);
int queuedCount = mediaQueued.size(); int queuedCount = mediaQueued.size();

@ -41,7 +41,7 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:background="?android:attr/listDivider"/> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -20,7 +20,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:padding="16dp" android:padding="16dp"
android:layout_margin="16dp" android:layout_margin="16dp"
android:contentDescription="@string/action_unmute" android:contentDescription="@string/action_delete"
app:srcCompat="@drawable/ic_clear_24dp" /> app:srcCompat="@drawable/ic_clear_24dp" />
</LinearLayout> </LinearLayout>

@ -32,7 +32,7 @@
<string name="title_blocks">Blocked users</string> <string name="title_blocks">Blocked users</string>
<string name="title_follow_requests">Follow Requests</string> <string name="title_follow_requests">Follow Requests</string>
<string name="title_edit_profile">Edit your profile</string> <string name="title_edit_profile">Edit your profile</string>
<string name="title_saved_toot">Saved Toot</string> <string name="title_saved_toot">Drafts</string>
<string name="status_username_format">\@%s</string> <string name="status_username_format">\@%s</string>
<string name="status_boosted_format">%s boosted</string> <string name="status_boosted_format">%s boosted</string>

Loading…
Cancel
Save