Skip to content

Commit

Permalink
Merge pull request #18485 from brave/fix_brave_shields_share_android13
Browse files Browse the repository at this point in the history
fix brave shields share android 13
  • Loading branch information
tapanmodh committed May 16, 2023
2 parents 4fc8164 + 161a3f0 commit 8026dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ private static Bitmap convertToBitmap(View view) {
}

public static boolean hasWritePermission(Activity activity) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
&& Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
if (activity == null) {
return false;
}
Expand Down
5 changes: 3 additions & 2 deletions android/java/res/layout/brave_shields_stats_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@
android:layout_width="0dp"
android:layout_height="24dp"
android:layout_weight="1"
android:src="@drawable/ic_help"
app:srcCompat="@drawable/ic_help"
android:contentDescription="@null"/>

<ImageView
android:id="@+id/share"
android:layout_width="0dp"
android:layout_height="24dp"
android:layout_weight="1"
android:src="@drawable/ic_share"
app:srcCompat="@drawable/ic_share"
app:tint="@color/shield_text_color"
android:contentDescription="@null"/>

</LinearLayout>

0 comments on commit 8026dee

Please sign in to comment.