Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
16 changes: 16 additions & 0 deletions android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,14 @@ android_resources("java_resources") {
"java/brave-res/layout-land/activity_brave_origin_plans.xml",
"java/brave-res/layout-land/activity_brave_vpn_profile.xml",
"java/brave-res/layout-land/activity_vpn_paywall.xml",
"java/brave-res/layout-land/approve_tx_bottom_sheet.xml",
"java/brave-res/layout-land/fragment_sign_message.xml",
"java/brave-res/layout-land/fragment_sign_tx_message.xml",
"java/brave-res/layout-land/fragment_siwe.xml",
"java/brave-res/layout-sw600dp-land/approve_tx_bottom_sheet.xml",
"java/brave-res/layout-sw600dp-land/fragment_sign_message.xml",
"java/brave-res/layout-sw600dp-land/fragment_sign_tx_message.xml",
"java/brave-res/layout-sw600dp-land/fragment_siwe.xml",
"java/brave-res/layout-sw600dp/activity_welcome_onboarding.xml",
"java/brave-res/layout/activity_account_selector.xml",
"java/brave-res/layout/activity_add_account.xml",
Expand All @@ -496,7 +504,9 @@ android_resources("java_resources") {
"java/brave-res/layout/activity_vpn_server_selection.xml",
"java/brave-res/layout/activity_welcome_onboarding.xml",
"java/brave-res/layout/application_item_layout.xml",
"java/brave-res/layout/approve_tx_actions.xml",
"java/brave-res/layout/approve_tx_bottom_sheet.xml",
"java/brave-res/layout/approve_tx_header.xml",
"java/brave-res/layout/auto_reconnect_vpn_tutorial_item_layout.xml",
"java/brave-res/layout/bottom_toolbar.xml",
"java/brave-res/layout/bottom_toolbar_browsing.xml",
Expand Down Expand Up @@ -645,7 +655,13 @@ android_resources("java_resources") {
"java/brave-res/layout/recovery_phrase_item_layout.xml",
"java/brave-res/layout/search_preference.xml",
"java/brave-res/layout/selected_network_item.xml",
"java/brave-res/layout/sign_message_details.xml",
"java/brave-res/layout/sign_message_header.xml",
"java/brave-res/layout/sign_tx_message_details.xml",
"java/brave-res/layout/sign_tx_message_header.xml",
"java/brave-res/layout/sign_warning_container.xml",
"java/brave-res/layout/siwe_details.xml",
"java/brave-res/layout/siwe_header.xml",
"java/brave-res/layout/toolbar_space.xml",
"java/brave-res/layout/tracker_item_layout.xml",
"java/brave-res/layout/view_holder_account_selector.xml",
Expand Down
4 changes: 1 addition & 3 deletions android/java/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
android:theme="@style/Theme.Chromium.Activity" />

<activity android:name="org.chromium.chrome.browser.crypto_wallet.activities.BraveWalletDAppsActivity"
android:theme="@style/Theme.Chromium.Activity.FakeTranslucent"
android:screenOrientation="sensorPortrait"
tools:ignore="LockedOrientationActivity,DiscouragedApi"/>
android:theme="@style/Theme.Chromium.Activity.FakeTranslucent" />

<activity
android:name="org.chromium.chrome.browser.vpn.split_tunnel.SplitTunnelActivity"
Expand Down
40 changes: 40 additions & 0 deletions android/java/brave-res/layout-land/approve_tx_bottom_sheet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".browser.crypto_wallet.fragments.ApproveTxBottomSheetDialogFragment">

<androidx.constraintlayout.widget.Guideline
android:id="@+id/column_divider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5"
tools:ignore="InconsistentLayout" />

<include
android:id="@+id/header_container"
layout="@layout/approve_tx_header"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/column_divider"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/actions_group"
layout="@layout/approve_tx_actions"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintStart_toEndOf="@id/column_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
43 changes: 43 additions & 0 deletions android/java/brave-res/layout-land/fragment_sign_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
android:background="@color/wallet_bg"
tools:context=".browser.crypto_wallet.fragments.dapps.SignMessageFragment">

<androidx.constraintlayout.widget.Guideline
android:id="@+id/column_divider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5"
tools:ignore="InconsistentLayout" />

<include
android:id="@+id/header_container"
layout="@layout/sign_message_header"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/column_divider"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/details_container"
layout="@layout/sign_message_details"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintStart_toEndOf="@id/column_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
43 changes: 43 additions & 0 deletions android/java/brave-res/layout-land/fragment_sign_tx_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
android:background="@color/wallet_bg"
tools:context=".browser.crypto_wallet.fragments.dapps.SignSolTransactionsFragment">

<androidx.constraintlayout.widget.Guideline
android:id="@+id/column_divider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5"
tools:ignore="InconsistentLayout" />

<include
android:id="@+id/header_container"
layout="@layout/sign_tx_message_header"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/column_divider"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/details_container"
layout="@layout/sign_tx_message_details"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintStart_toEndOf="@id/column_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
64 changes: 64 additions & 0 deletions android/java/brave-res/layout-land/fragment_siwe.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/wallet_bg"
android:orientation="vertical"
tools:context=".browser.crypto_wallet.fragments.dapps.SiweMessageFragment">

<TextView
android:id="@+id/frag_siwe_tv_title"
style="@style/BraveWalletTextViewTitle"
android:layout_width="match_parent"
android:layout_marginTop="12dp"
android:gravity="center"
android:text="@string/brave_wallet_sign_in_with_brave_wallet"
android:textSize="20sp" />

<View
android:id="@+id/frag_siwe_div1"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="12dp"
android:background="@color/wallet_edittext_outline_color" />

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">

<androidx.constraintlayout.widget.Guideline
android:id="@+id/column_divider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5"
tools:ignore="InconsistentLayout" />

<include
android:id="@+id/header_container"
layout="@layout/siwe_header"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/column_divider"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/details_container"
layout="@layout/siwe_details"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintStart_toEndOf="@id/column_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".browser.crypto_wallet.fragments.ApproveTxBottomSheetDialogFragment">

<include
android:id="@+id/header_container"
layout="@layout/approve_tx_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/actions_group"
layout="@layout/approve_tx_actions"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_container"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
android:background="@color/wallet_bg"
tools:context=".browser.crypto_wallet.fragments.dapps.SignMessageFragment">

<include
android:id="@+id/header_container"
layout="@layout/sign_message_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/details_container"
layout="@layout/sign_message_details"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_container"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
android:background="@color/wallet_bg"
tools:context=".browser.crypto_wallet.fragments.dapps.SignSolTransactionsFragment">

<include
android:id="@+id/header_container"
layout="@layout/sign_tx_message_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<include
android:id="@+id/details_container"
layout="@layout/sign_tx_message_details"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_container"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Loading
Loading