Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

small change to MediaPicker button #2704

Merged
merged 2 commits into from
Nov 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Bugfix:
- Fix Permalinks and registration issue (#2689)
- Mention from read receipts list doesn't work (#656)
- Fix issue when scrolling file list in room details (#2702)
- Align switch camera button to parent in landscape mode (#2703)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's #2704 :)


Translations:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public ActivityOtherThemes getOtherThemes() {

@Override
public int getLayoutRes() {
return R.layout.activity_vector_medias_picker;
return R.layout.activity_vector_media_picker;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void transformPage(View view, float position) {

@Override
public int getLayoutRes() {
return R.layout.activity_vector_medias_viewer;
return R.layout.activity_vector_media_viewer;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2302,7 +2302,7 @@ private void startStickerPickerActivity() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);

// Use the builder context
View v = LayoutInflater.from(builder.getContext()).inflate(R.layout.no_sticker_pack_dialog, null);
View v = LayoutInflater.from(builder.getContext()).inflate(R.layout.dialog_no_sticker_pack, null);

builder
.setView(v)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public int getItemCount() {
@NonNull
@Override
public MediaItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.media_preview, parent, false);
final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_item_media_preview, parent, false);
return new MediaItemViewHolder(view);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public VectorMessagesAdapter(MXSession session, Context context, MXMediasCache m
R.layout.adapter_item_vector_message_emoji,
R.layout.adapter_item_vector_message_code,
R.layout.adapter_item_vector_message_image_video,
R.layout.adapter_item_vector_hidden_message,
R.layout.adapter_item_vector_message_redact,
R.layout.adapter_item_vector_message_room_versioned,
mediasCache);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public VectorSearchMessagesListAdapter(MXSession session, Context context, boole
R.layout.adapter_item_vector_message_emoji,
R.layout.adapter_item_vector_message_code,
R.layout.adapter_item_vector_message_image_video,
R.layout.adapter_item_vector_hidden_message,
R.layout.adapter_item_vector_message_redact,
R.layout.adapter_item_vector_message_room_versioned,
mediasCache);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
android:id="@+id/medias_picker_switch_camera"
android:layout_width="46dp"
android:layout_height="46dp"
android:layout_alignEnd="@+id/medias_picker_texture_view"
android:layout_alignRight="@+id/medias_picker_texture_view"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
Expand Down