Feature #2926

make RepoProvider.Helper take Context rather than ContentResolver

Added by hans almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:01/31/2014
Priority:LowDue date:
Assignee:hans% Done:

0%

Category:-
Target version:0.2 - ChatSecure/Bluetooth
Component:

Description

On 2014-01-24 11:12, Hans-Christoph Steiner wrote:

Hope you're enjoying camping! I have a small suggestion: if
RepoProvider.Helper.findById() used Context instead of ContentResolver, it
might be a little simpler.

Sounds like a good idea to me. Thanks. Especially given that a Context gets passed around the rest of the Android framework, and the main (only?) way that a user of RepoProvider.Helper.* functions would get a reference to a ContentResolver is through a Context.

Could you submit a merge request with that patch? I'll make sure the other [App|Apk]Provider.Helper.* methods abide by the same principle.

cheers,
pete.

Associated revisions

Revision ab6166c3
Added by Hans-Christoph Steiner almost 4 years ago

make RepoProvider.Helper take Context rather than ContentResolver

This makes the code a bit neater, and passing the Context around is a
common pattern.

https://dev.guardianproject.info/issues/2926
refs #2926

Revision a4de616b
Added by Hans-Christoph Steiner almost 4 years ago

make ApkProvider.Helper take Context rather than ContentResolver

This makes the code a bit neater, and passing the Context around is a
common pattern.

https://dev.guardianproject.info/issues/2926
refs #2926

History

#1 Updated by hans almost 4 years ago

  • Priority changed from Normal to Low
  • Target version set to Integrate Kerplapp into FDroid

#2 Updated by hans almost 4 years ago

  • Status changed from New to In Progress
  • Assignee set to hans
  • Target version changed from Integrate Kerplapp into FDroid to 0.2 - ChatSecure/Bluetooth

#3 Updated by hans almost 4 years ago

  • Status changed from In Progress to Resolved

#4 Updated by hans almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF