Build error with Android SDK platform 13: reference to ClipboardManager is ambiguous

RESOLVED FIXED in mozilla8

Status

()

Core
Widget: Android
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: mbrubeck, Assigned: mbrubeck)

Tracking

Trunk
mozilla8
All
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 551267 [details] [diff] [review]
patch

I get the following error when building with platform-13:

GeckoAppShell.java:838: reference to ClipboardManager is ambiguous, both class android.content.ClipboardManager in android.content and class android.text.ClipboardManager in android.text match

API level 11 introduced a the android.content.ClipboardManager class, which is a subclass designed to replace android.text.ClipboardManager.  This patch uses the fully-qualified name of the old class, so that the code will build with the new SDK but still run on platforms < API level 11.
Attachment #551267 - Flags: review?(blassey.bugs)
Attachment #551267 - Flags: review?(blassey.bugs) → review+
(Assignee)

Comment 1

6 years ago
https://hg.mozilla.org/mozilla-central/rev/95feef73a8ba
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.