Any ole context will work
On May 31, 2013 3:04 PM, "Patrick Larson" <notifications@github.com> wrote:

> In src/edu/washington/cs/cellasecure/DriveManageActivity.java:
>
> > @@ -76,8 +77,11 @@ public boolean onOptionsItemSelected(MenuItem item) {
> >      @Override
> >      public void onConnect() {
> >          assert mDrive.isConnected();
> > -        mDrive.setOnLockQueryResultListener(this);
> > -        mDrive.queryLockStatus();
> > +        try {
> > +            DeviceUtils.addToFile(getParent(), mDrive);
>
> I wasn't sure if the file was dependent on the context of where it was
> originated.
> Since it was first written from DeviceListActivity, I used getParent() so
> the context would be the same.
>
> If this isn't necessary we can just use this context.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cellasecure/cella-android-client/pull/25/files#r4486326>
> .
>