BoD / android-contentprovider-generator

A tool to generate Android ContentProviders.
GNU General Public License v3.0
619 stars 151 forks source link

String equality called with equal signs #77

Closed ansman closed 9 years ago

ansman commented 9 years ago

The columns class for a table uses == to check string equality in hasColumns, is this intentional because it would seem risky to do this if the content provider will be used in a cross process environment.

BoD commented 9 years ago

It was done this way because you are supposed to always use the constants defined above.

ansman commented 9 years ago

Well, in a multi process environment this isn't possible.

BoD commented 9 years ago

This is interesting, can you tell me more about what you are doing?

ansman commented 9 years ago

We would like to expose our content provider to the outside so that other apps may access it.

BoD commented 9 years ago

I see. I didn't think of that case, and I think you are absolutely right, it will be a problem with the ==. I will fix it asap and make a new release (PR welcome if you want accelerate the process a bit :) ).

ansman commented 9 years ago

I'll make a pull request then :) Thanks!