With the latest v4 support library, we can also start using
SimpleArrayMap/ArrayMap for some of the places where we've been using
HashMap. SimpleArrayMap [1] and ArrayMap [2] have better memory
characteristics than HashMap for a small perf tradeoff.

[1]
http://developer.android.com/reference/android/support/v4/util/SimpleArrayMap.html
[2]
http://developer.android.com/reference/android/support/v4/util/ArrayMap.html

Jim


On 3/31/14 2:45 PM, Nick Alexander wrote:
> Thanks for posting, jdover.
> 
> On 2014-03-31, 11:36 AM, Joshua Dover wrote:
>> If we want to use the new SwipeRefreshLayout for Bug 970707
>> <https://bugzilla.mozilla.org/show_bug.cgi?id=970707> we will need to
>> update our support library to the newest version
>> <http://developer.android.com/tools/support-library/index.html>
>> (19.1.0). As
>> far as I can tell there are not any breaking changes as the only other
>> changes listed on the Android site are bug fixes.
> 
> I'd just like to clarify that there are multiple version of the
> support library: v4, v7, and v13.  Each of these has its own release
> version.
> 
> What jdover is suggesting is that we rev the v4 library to the newer
> release version to get access to the new SwipeRefreshLayout class. 
> I'm +1 to this; we want to use it in a few different places:
> 
> * pull to refresh home page lists;
> * refresh remote synced tabs;
> * possibly pull to sync in the Firefox Accounts + Sync 1.5 status
> activity.
> 
>> This will require all developers building fennec to update the support
>> library on their local machines using the Android SDK Manager, as well
>> as having it updated on the build servers (blassey help here?).
>>
>> Are there any other concerns that anyone knows about in regards to
>> updating?
> 
> If we could interrogate the v4 internal version and fail the build if
> we don't have a sufficiently recent version, it would help a great
> deal. But in any case, I think we should do this, and will help with
> the build system as needed.
> 
> Nick
> _______________________________________________
> mobile-firefox-dev mailing list
> mobile-firefox-dev@mozilla.org
> https://mail.mozilla.org/listinfo/mobile-firefox-dev
_______________________________________________
mobile-firefox-dev mailing list
mobile-firefox-dev@mozilla.org
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to