Commit Graph
129 Commits
Author SHA1 Message Date
James Willcox c9212d54dc Bug 1372926 - Followup to fix lint failures r=me
MozReview-Commit-ID: BdqAHAtsmIH
2017-09-28 09:51:56 -05:00
James Willcox e11804e177 Bug 1372926 - Support new shortcut API in Android O r=nechen
MozReview-Commit-ID: ICRoMR2wSPq
2017-09-28 09:09:52 -05:00
Jing-wei Wu 8a98e91562 Bug 1399384 - Part 2: Status bar color refinements. r=nechen
We would like to change the status bar color based on different situation:

- For mobile, the status bar color is
  #F7FAFC in normal mode,
  #38383D in private mode, and
  #272727 in tabs tray page

- For tablet, the status bar color is always #272727

MozReview-Commit-ID: Ala5ZOYJ8Ad
2017-09-13 17:17:25 +08:00
suneet 7cf31e5a7a Bug 1394879 - Replaced TouchDelegate usage with TouchDelegateWithReset .r=JanH
MozReview-Commit-ID: 4pTiOXAUkp0
2017-09-14 01:45:19 +05:30
Julian_Chu 2348878ae3 Bug 1355735 - Add util to pick name for default browser r=jwu
The util PackageUtil helps to get ResolveInfo of default browser, then
we can use it in CustomTabs menu. If user hasn't set any default
browser, instead we display "..." for browser name.

MozReview-Commit-ID: 6DkFkZ8Ovzq
2017-09-09 00:47:44 +08:00
Michael Comella 303c2718a4 Bug 1390372: Add URIUtils.isPathEmpty. r=liuche
MozReview-Commit-ID: G8rq6NL54mZ
2017-08-14 18:07:03 -07:00
Michael Comella 0bb96f8063 Bug 1386902: Add URIUtils.getFormattedDomain. r=liuche
This combines getBaseDomain & getHostSecondLevel domain and allows us to be
more flexible.

MozReview-Commit-ID: 7FdWsfZvGFt
2017-08-10 15:21:42 -07:00
Jing-wei Wu 43bdef7b14 Bug 1375351 - Part 3: Remove SkinConfig. r=nechen,walkingice
SkinConfig is used to detect current skin is Australis or Photon at runtime.
Since we don't support Australis anymore in Nightly, this class should be removed.

MozReview-Commit-ID: 8yjTFYyQcgt
2017-08-09 14:19:28 +08:00
Jing-wei Wu 23132f424a Bug 1376995 - Update status bar color while switching between normal mode and private mode. r=walkingice
MozReview-Commit-ID: 4t0QKTktpSN
2017-08-04 17:21:11 +08:00
Michael Comella bbf75614f5 Bug 1377287 - review: getHostSLD returns empty str on error. r=mcomella
In response to https://bugzilla.mozilla.org/show_bug.cgi?id=1377287#c26:
getHostSLD should only return hosts.

MozReview-Commit-ID: IFN5FWjFLx4
2017-07-26 15:08:40 -07:00
Michael Comella 4243b92426 Bug 1377287: Use FFiOS label algorithm for BottomSheetContextMenu. r=sebastian
MozReview-Commit-ID: LWan7wVNASb
2017-07-19 14:36:14 -07:00
Michael Comella f887059498 Bug 1377287: Update highlights label algorithm to match FFiOS. r=sebastian
MozReview-Commit-ID: KLRdP9wXh1N
2017-07-18 15:03:39 -07:00
Michael Comella f421a09225 Bug 1377287: Add URIUtils.getHostSecondLevelDomain and friends. r=liuche
This is used by the iOS implementation of AS to get the highlight titles.

MozReview-Commit-ID: 1p5Lf9OBcfD
2017-07-17 18:10:16 -07:00
Julian_Chu 3f41949293 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Sebastian Hengst 06ba9ed462 Backed out changeset b0ba143fba67 (bug 1379066) 2017-07-10 15:52:48 +02:00
Julian_Chu caa539b312 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Tom Klein 1869ce4542 Bug 1331154 - 1. Add TabsLayout support for reordering tabs. r=sebastian
Future commits will update the tabs lists in Tabs and gecko; for now we're just
updating the TabsLayoutAdapter list.

When considering some of the changes in TabsTouchHelperCallback, note that
TabStripView uses the new drag and drop, but not swipe to close.

MozReview-Commit-ID: EEseqmVIZmY
2017-02-02 17:15:27 -06:00
maliu df943b2db0 Bug 1331995 - Reset text direction to locale in order to reveal text hint, checkstyle, r=sebastian 2017-03-01 18:34:59 +01:00
maliu e9a61904c7 Bug 1331995 - Reset text direction to locale in order to reveal text hint, r=sebastian
MozReview-Commit-ID: I1FIL7QDRSu
2017-03-01 14:04:52 +08:00
Andrzej Hunt be4870e89c Bug 1325931 - Implement ViewUtil.setCenteredText() for TextViews with compound drawables r=sebastian
Compound drawables shift the point where text is "centered". This hack dynamically adds
equivalent padding on the opposite side from a compound drawable, to force the text
to be centered again. (We can't set this padding under all circumstances, it's unneeded
when the text is longer than the available space, i.e. when we wrap text we might
as well use the full width without fake padding.)

MozReview-Commit-ID: 8WDXCNOs2DX
2017-02-09 13:26:43 -08:00
Andrzej Hunt d74464cf7c Bug 1325096 - Post: only use deprecated setBackgroundDrawable on older platforms r=maliu
This has no benefit right now, but this lets us avoid forgetting to upgrade to the non-deprecated
method once we no longer need to support api 15.

MozReview-Commit-ID: FmRoP5PnGDC
2017-01-23 15:59:18 -08:00
Andrzej Hunt 251bef49e1 Bug 1325096 - Fix menu button padding on select devices r=maliu
On some devices, ImageView appears to lose it's padding when calling
setBackground[Drawable](). We therefore need to save and restore the
padding on those devices.

Known affected devices are various Asus Transformer tablets,
and also the Motorola Droid 4, running various Android 4.X versions.
We therefore make this workaround conditional on Android 4 to minimise
the number of devices where this workaround is used. (Having the conditional
should also make it easy to notice when we can remove the workaround, i.e.
whenever Android 5 becomes the baseline.)

MozReview-Commit-ID: B88gWwEx48x
2017-01-23 15:53:49 -08:00
maliu fa8fdfc688 Bug 1332258 - Reset text fading gradient to null when text direction changed, r=sebastian
MozReview-Commit-ID: EaUUO8aegzj
2017-01-19 15:09:14 +08:00
maliu ca5176d2f8 Bug 1029646 - Update layout direction of configuration and DecorView, r=ahunt
MozReview-Commit-ID: FiDwoX45yV9
2017-01-03 15:14:59 +08:00
maliu fa14753cea Bug 1328515 - Refine fallback margin left/right to include api23, r=sebastian
MozReview-Commit-ID: Ac8FP1fOGa
2017-01-04 12:04:28 +08:00
Sebastian Hengst 4dfee98483 Bug 1324280 - Revert MarginLayoutParamsCompat with setting margin left/right by current layout direction: lint style fixes. r=lint-fixes 2016-12-22 18:52:34 +01:00
maliu bc364d383e Bug 1324280 - Revert MarginLayoutParamsCompat with setting margin left/right by current layout direction, r=sebastian
MozReview-Commit-ID: amwDqXRxE5
2016-12-21 15:27:09 +08:00
Sebastian Kaspari 551a3e250e Bug 1268414 - Remove UnusedResourcesUtil.TEMPORARY_UNUSED_WHILE_MIGRATING_GRADLE and related resources. r?
MozReview-Commit-ID: 2VMQrRvvMi3
2016-11-17 15:45:31 +08:00
Wes Kocher f858d1f20c Bug 1316869 - checkstyle fixes a=me 2016-11-11 13:23:52 -08:00
Dylan Roeh c454880378 Bug 1316869 - Choose black or white title text color for custom tabs toolbar based on background color. r=sebastian 2016-11-11 09:26:31 -06:00
Andrzej Hunt 3b28e98533 Bug 1315717 - Add ripple feedback to AS context menu buttons on Android >= 5 r=sebastian
The circular ripple is only available on API >= 21. We can fallback to a different solution
for older devices, see following patch.

MozReview-Commit-ID: C0aBqsKsuZ5
2016-11-08 10:11:02 -05:00
Jonathan Almeida (:jonalmeida) 2ce2cd1865 Bug 1279278 - Custom Tabs toolbar using color fron Intent r=sebastian 2016-09-18 13:27:01 -04:00
Andrzej Hunt a63bcaeb29 Bug 1312114 - Post: centralise AppCompatDrawableManager calls to allow easy replacement r=sebastian
We'll want to switch to AppCompatResources as soon as it's available (i.e. support library 24.2).
Keeping this call in one central location should make that upgrade slightly easier. (Especially
since there is a good chance we will expand VectorDrawable usage to other parts of the app
before we get round to upgrading the support library.)

MozReview-Commit-ID: CvnLzE0mbwz
2016-11-03 11:45:42 +01:00
Andrzej Hunt f362bd88d5 Bug 1312114 - Support VectorDrawable's in ResourceDrawableUtils r=sebastian
MozReview-Commit-ID: 26jCSWUpiRU
2016-11-03 11:47:38 +01:00
Andrzej Hunt b87a46c199 Bug 1312114 - Pre: Move getDrawable() from (geckoview) BitmapUtils into (fennec) MenuBitmapUtils to allow support library access r=nalexander
In order to use VectorDrawable's in this code we need to use AppCompatDrawableManager, which
is in the v7 appcompat support library. GeckoView cannot access that library, hence
we should move getDrawable() into the main Fennec jar in order to let us use
VectorDrawable's.

Similarly we need to move DrawableUtil for the same reasons.

(This commit only takes care of moving the code, the following code adds VectorDrawable support.)

MozReview-Commit-ID: CE2yTMLgBlJ
2016-10-21 15:51:38 -07:00
Andrzej Hunt e3ff183bbc Bug 1312467 - Move TouchTarget handling into generic helper class r=sebastian
This will allow us to reuse it for other similar menu buttons.

MozReview-Commit-ID: L8pleo8bQp9
2016-10-31 15:42:30 +01:00
Nick Alexander 2342f1d500 Bug 1303468 - Part 2: Move Fennec- and Gradle-specific file back to base/. r=jchen
This is only there to silence the linter.

MozReview-Commit-ID: 8zEDsrbjyeo
2016-09-16 15:55:01 -07:00
Nick Alexander dce7dd3520 Bug 1291811 - Move GeckoView Java sources into mobile/android/geckoview. r=sebastian
This is the first step only.  It moves Experiments out of util (just
for convenience) -- I would have liked to have moved WhatsNewReceiver
out of notifications as well, but it's referenced in
AndroidManifest.xml.in and I don't want to break that.

The set of files in GeckoView is slightly larger than what we really
want, but it's close to correct.  Future tickets will get things
compiling and trim the set of files down to size.  Hopefully we can
move notifications/, permissions/, and restrictions/ back to Fennec.

This is not technically required, but it's best to bulk move the files
up front and patch later, rather than jump through hoops to
distinguish the set of files in Gradle (and moz.build).

MozReview-Commit-ID: EWaAeswFoeG
2016-08-02 16:34:32 -07:00
Sebastian Kaspari d65d050769 Bug 1220773 - Do not run our updater if app was installed from Google Play. r=ahunt,esawin
MozReview-Commit-ID: Bz4kErHzhen
2016-07-26 10:36:37 +02:00
Tom Klein f242b8e13a Bug 1031519 - Use immersive fullscreen when available. r=mcomella
This is Deepthi Venkitaramanan's patch with feedback comments addressed.

MozReview-Commit-ID: 7vs0ZgefOVy
2016-07-18 18:50:47 -05:00
Sebastian Kaspari a403e609aa Bug 1284372 - URL bar: Force LTR for the URL. r=grisha
MozReview-Commit-ID: 3WnPTRmk5VO
2016-07-06 13:57:19 +02:00
[email protected] bd8d1b6b16 Bug 1270124 - "Make Firefox Default Browser" option is missing from Tablet. r=grisha
MozReview-Commit-ID: EpJWTJUdu6I
2016-06-07 09:55:23 -07:00
Andrzej Hunt 35f8e704ef Bug 1265708 - Pre: Implement StringUtils.stripRef r=sebastian
MozReview-Commit-ID: AO25iiUMXLE
2016-06-05 17:37:12 -07:00
Carsten "Tomcat" Book 1aed448a6b Backed out changeset 974090a524da (bug 1265708) 2016-06-04 09:24:16 +02:00
Andrzej Hunt 5093b06b6a Bug 1265708 - Pre: Implement StringUtils.stripRef r=sebastian
MozReview-Commit-ID: AO25iiUMXLE
2016-06-03 14:04:39 -07:00
Michael Comella 974a14282f Bug 1275669 - Do not enable adjust if we are in automation. r=grisha
MozReview-Commit-ID: 9i10xv6nZem
2016-06-02 13:21:40 -07:00
Michael Comella 4bbd70b22a Bug 1277214 - Move MOZ_DISABLE_* to single MOZ_IN_AUTOMATION env var. r=grisha
We hit an issue where adding a new env var, MOZ_DISABLE_TELEMETRY, added env10
and caused crashes. I suspect the issue is that there are is now a double-digit
number of env vars (bug 1277390). Here, we do the quick fix by removing
MOZ_DISABLE_TELEMETRY & repurposing MOZ_DISABLE_SWITCHBOARD to be generic.

While we're at it, we simplify the code by making the setDisabled methods a
strict getter without checking for how many times they're called.

MozReview-Commit-ID: 19DDbVYRZ2
2016-06-01 16:46:44 -07:00
Michael Comella cc036a4379 Bug 1277214 - Stop reading env vars when the key no longer exists. r=grisha
In the previous implementation, we'd stop reading when the value would return
null, however, this breaks with SafeIntents where null is returned if a value
throws a runtime exception - i.e. we might stop reading at env2 if it throws
even though env3+ exist.

MozReview-Commit-ID: 7iZgUAjBSmB
2016-06-01 16:29:26 -07:00
Michael Comella 01286d63ef Bug 1277214 - Use SafeIntent in getEnvVarMap. r=grisha
MozReview-Commit-ID: 5eXjgCsd6Rl
2016-06-01 15:34:34 -07:00