Skip to content

Commit

Permalink
[editor] Add website:menu key
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
  • Loading branch information
Arthur-GYT committed May 6, 2024
1 parent 54acf82 commit 356ffa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count)
mPhone.setText(Editor.nativeGetPhone());

initMetadataEntry(Metadata.MetadataType.FMD_WEBSITE, R.string.error_enter_correct_web);
initMetadataEntry(Metadata.MetadataType.FMD_WEBSITE_MENU, R.string.error_enter_correct_web);
initMetadataEntry(Metadata.MetadataType.FMD_EMAIL, R.string.error_enter_correct_email);
initMetadataEntry(Metadata.MetadataType.FMD_CONTACT_FACEBOOK, R.string.error_enter_correct_facebook_page);
initMetadataEntry(Metadata.MetadataType.FMD_CONTACT_INSTAGRAM, R.string.error_enter_correct_instagram_page);
Expand Down Expand Up @@ -427,6 +428,8 @@ private void initViews(View view)
mPhone.setOnClickListener(this);
initBlock(view, Metadata.MetadataType.FMD_WEBSITE, R.id.block_website,
R.drawable.ic_website, R.string.website, InputType.TYPE_TEXT_VARIATION_URI);
initBlock(view, Metadata.MetadataType.FMD_WEBSITE_MENU, R.id.block_website_menu,
R.drawable.ic_website_menu, R.string.website_menu, InputType.TYPE_TEXT_VARIATION_URI);
initBlock(view, Metadata.MetadataType.FMD_EMAIL, R.id.block_email,
R.drawable.ic_email, R.string.email, InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
initBlock(view, Metadata.MetadataType.FMD_CONTACT_FACEBOOK, R.id.block_facebook,
Expand Down
4 changes: 4 additions & 0 deletions android/app/src/main/res/layout/fragment_editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@
android:background="?dividerHorizontal"/>
</RelativeLayout>

<include
android:id="@+id/block_website_menu"
layout="@layout/item_editor_input"/>

<RelativeLayout
android:id="@+id/block_phone"
style="@style/MwmWidget.Editor.MetadataBlock.Clickable">
Expand Down

0 comments on commit 356ffa1

Please sign in to comment.