Author: n8fr8 Date: 2011-04-17 16:15:56 +0000 (Sun, 17 Apr 2011) New Revision: 24648
Added: projects/android/trunk/Orbot/src/org/torproject/android/ProcessSettingsAsyncTask.java Log: moves settings to proper Android imp of background thread
Added: projects/android/trunk/Orbot/src/org/torproject/android/ProcessSettingsAsyncTask.java =================================================================== --- projects/android/trunk/Orbot/src/org/torproject/android/ProcessSettingsAsyncTask.java (rev 0) +++ projects/android/trunk/Orbot/src/org/torproject/android/ProcessSettingsAsyncTask.java 2011-04-17 16:15:56 UTC (rev 24648) @@ -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) { + + } + +}
tor-commits@lists.torproject.org