@@ -0,0 +1,1518 @@
+package de.fau.cs.mad.yasme.android.asyncTasks.server;%0A%0Aimport android.content.SharedPreferences;%0Aimport android.os.AsyncTask;%0Aimport de.fau.cs.mad.yasme.android.controller.Log;%0A%0Aimport de.fau.cs.mad.yasme.android.connection.UserTask;%0Aimport de.fau.cs.mad.yasme.android.controller.SpinnerObservable;%0Aimport de.fau.cs.mad.yasme.android.entities.User;%0Aimport de.fau.cs.mad.yasme.android.exception.RestServiceException;%0Aimport de.fau.cs.mad.yasme.android.storage.DatabaseManager;%0Aimport de.fau.cs.mad.yasme.android.ui.AbstractYasmeActivity;%0A%0A/**%0A * @Author Tim Nisslbeck (hu78sapy@stud.cs.fau.de), 29.08.14%0A */%0Apublic class SetProfileDataTask extends AsyncTask%3CVoid, Void, Boolean%3E %7B%0A%0A%09private User selfProfile;%0A%09public SetProfileDataTask(User selfUser) %7B%0A%09%09selfProfile = selfUser;%0A%09%7D%0A%09protected Boolean doInBackground(Void... nothing) %7B%0A%09%09SpinnerObservable.getInstance().registerBackgroundTask(this);%0A%09%09try %7B%0A%09%09%09UserTask.getInstance().changeUserData(selfProfile);%0A%09%09%7D catch (RestServiceException rse) %7B%0A%09%09%09Log.e(this.getClass().getSimpleName(),rse.getMessage());%0A%09%09%09return false;%0A%09%09%7D%0A%09%09return selfProfile != null;%0A%09%7D%0A%0A%09protected void onPostExecute(final Boolean success) %7B%0A%09%09SpinnerObservable.getInstance().removeBackgroundTask(this);%0A%09%09if(!success) return;%0A%09%09SharedPreferences.Editor editor = DatabaseManager.INSTANCE.getSharedPreferences().edit();%0A%09%09editor.putLong(AbstractYasmeActivity.USER_ID, selfProfile.getId());%0A%09%09editor.putString(AbstractYasmeActivity.USER_NAME, selfProfile.getName());%0A%09%09editor.commit();%0A%09%7D%0A%7D%0A

Add missing file