Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc8139d0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle SecurityException in ClipData.Item.coerceToText"

parents 939ccc38 b143ff6b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -353,6 +353,9 @@ public class ClipData implements Parcelable {
                    }
                    return builder.toString();

                } catch (SecurityException e) {
                    Log.w("ClipData", "Failure opening stream", e);

                } catch (FileNotFoundException e) {
                    // Unable to open content URI as text...  not really an
                    // error, just something to ignore.
@@ -536,6 +539,9 @@ public class ClipData implements Parcelable {
                            return Html.escapeHtml(text);
                        }

                    } catch (SecurityException e) {
                        Log.w("ClipData", "Failure opening stream", e);

                    } catch (FileNotFoundException e) {
                        // Unable to open content URI as text...  not really an
                        // error, just something to ignore.