Closed Bug 1595611 Opened 5 years ago Closed 5 years ago

Consider caching ConnectivityManager in GeckoAppShell.java

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: valentin, Assigned: sonakshisaxena1)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

https://phabricator.services.mozilla.com/D51561#1594289

This can be somewhat slow, so if we plan to call this a lot we should consider caching the ConnectivityManager.

We have a bunch of methods that use the ConnectivityManager, so we may want to actually do that.

(In reply to Valentin Gosu [:valentin] (he/him) from comment #0)

https://phabricator.services.mozilla.com/D51561#1594289

This can be somewhat slow, so if we plan to call this a lot we should consider caching the ConnectivityManager.

We have a bunch of methods that use the ConnectivityManager, so we may want to actually do that.

Hey [:valentin]
Would like to work on this. Can I take this too?

Thanks!

Sure, you're welcome to work on it.
Make sure to set your Android env according to this: https://mozilla.github.io/geckoview/

Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java
Assignee: nobody → sonakshisaxena1
Status: NEW → ASSIGNED

Hey [:snorp]
Can you please review the patch?
Thanks!

Flags: needinfo?(snorp)
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.java → Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp
Attachment #9138150 - Attachment description: Bug 1595611 - Consider caching ConnectivityManager in GeckoAppShell.javar=snorp → Bug 1595611 - Cache ConnectivityManager in GeckoAppShell r=snorp
Pushed by jwillcox@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/919791773dac Cache ConnectivityManager in GeckoAppShell r=snorp
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: