moves settings to proper Android imp of background thread

svn:r24648
This commit is contained in:
Nathan Freitas 2011-04-17 16:15:56 +00:00
parent 24108e1206
commit f952a0e60e
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
package org.torproject.android;
import org.torproject.android.service.ITorService;
import android.os.AsyncTask;
import android.os.RemoteException;
public class ProcessSettingsAsyncTask extends AsyncTask<ITorService, Integer, Long>
{
@Override
protected Long doInBackground(ITorService... torService) {
try {
torService[0].processSettings();
} catch (RemoteException e) {
e.printStackTrace();
}
return 100L;
}
protected void onProgressUpdate(Integer... progress) {
}
protected void onPostExecute(Long result) {
}
}