From: Magnus Sjoqvist Date: Fri, 17 Oct 2014 09:06:30 +0000 (+0200) Subject: Merge with develop X-Git-Tag: oc-android-1.7.0_signed~119^2~2^2~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/b6c7719415ce87d905996a4def50066415786c3e Merge with develop --- b6c7719415ce87d905996a4def50066415786c3e diff --cc res/values-it/strings.xml index bbd3c4f1,d4507602..7423cbfe --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@@ -30,10 -30,8 +30,10 @@@ Consiglia ad un amico Segnalazioni Imprint + Salvare l\'ultimo percorso usata per l\'upload + Salva la posizione Prova %1$s sul tuo smartphone! - \"Vorrei invitarti ad usare %1$s sul tuo smartphone!\nScaricalo qui: %2$s\"\n\t + Vorrei invitarti a usare %1$s sul tuo smartphone!\nScarica qui: %2$s Verifica server Indirizzo server https://... Nome utente diff --cc res/values-sv/strings.xml index 10727c06,be006747..7328f8ea --- a/res/values-sv/strings.xml +++ b/res/values-sv/strings.xml @@@ -30,10 -30,8 +30,10 @@@ Rekommendera till en vän Feedback Imprint + Kom ihåg uppladdningsplats + Kom ihåg senaste uppladdningsplatsen för delning Försök %1$s på din smarttelefon! - \"Jag vill bjuda in dig att använda %1$s på din smartphone\nLadda ner här: %2$s\"\n\t + Jag skulle vilja bjuda in dig till att använda %1$s på din smartphone!\nLadda ner här: %2$s Kontrollera Server Serveradress https://... Användarnamn diff --cc res/values/strings.xml index cf4dffbd,4c7cf34d..30c9557b --- a/res/values/strings.xml +++ b/res/values/strings.xml @@@ -31,13 -31,9 +31,11 @@@ Recommend to a friend Feedback Imprint - + Remember share location + Remember last share upload location + - - "Try %1$s on your smartphone!" - "I want to invite you to use %1$s on your smartphone!\nDownload here: %2$s" - + "Try %1$s on your smartphone!" + "I want to invite you to use %1$s on your smartphone!\nDownload here: %2$s" Check Server Server address https://… @@@ -272,4 -270,36 +272,36 @@@ An error occurred while waiting for the server, the operation couldn\'t have been done An error occurred while waiting for the server, the operation couldn\'t have been done The operation couldn\'t be completed, server is unavailable ++ + + + You do not have permission %s + to rename this file + to delete this file + to share this file + to unshare this file + to create the file + to upload in this folder + The file is no longer available on the server + + Accounts + Add account + Secure connection is redirected through an unsecured route. + + Logs + Send History + ownCloud Android app logs + Loading data... + + Authentication required + Wrong password + Move + Nothing in here. You can add a folder! + Choose + + Unable to move. Please check whether the file exists + It is not possible to move a folder into a descendant + The file exists already in the destination folder + An error occurred while trying to move this file or folder + to move this file - diff --cc src/com/owncloud/android/ui/activity/Preferences.java index 6719824a,9ac6e27b..01c235c6 --- a/src/com/owncloud/android/ui/activity/Preferences.java +++ b/src/com/owncloud/android/ui/activity/Preferences.java @@@ -35,12 -46,14 +46,15 @@@ import com.actionbarsherlock.app.Action import com.actionbarsherlock.app.SherlockPreferenceActivity; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuItem; + import com.owncloud.android.MainApp; import com.owncloud.android.R; import com.owncloud.android.authentication.AccountUtils; + import com.owncloud.android.authentication.AuthenticatorActivity; import com.owncloud.android.db.DbHandler; +import com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle; + import com.owncloud.android.lib.common.utils.Log_OC; + import com.owncloud.android.ui.LongClickableCheckBoxPreference; import com.owncloud.android.utils.DisplayUtils; - import com.owncloud.android.utils.Log_OC; /** @@@ -49,16 -62,19 +63,20 @@@ * @author Bartek Przybylski * @author David A. Velasco */ - public class Preferences extends SherlockPreferenceActivity { + public class Preferences extends SherlockPreferenceActivity implements AccountManagerCallback { private static final String TAG = "OwnCloudPreferences"; + private DbHandler mDbHandler; private CheckBoxPreference pCode; + private CheckBoxPreference pSaveLocation; - //private CheckBoxPreference pLogging; - //private Preference pLoggingHistory; private Preference pAboutApp; + private PreferenceCategory mAccountsPrefCategory = null; + private final Handler mHandler = new Handler(); + private String mAccountName; + private boolean mShowContextMenu = false; + @SuppressWarnings("deprecation") @Override @@@ -98,23 -131,6 +133,24 @@@ } + pSaveLocation = (CheckBoxPreferenceWithLongTitle) findPreference("save_last_upload_location"); + if(pSaveLocation != null){ + pSaveLocation.setOnPreferenceChangeListener(new OnPreferenceChangeListener() { + @Override + public boolean onPreferenceChange(Preference preference, Object newValue) { + //The saved path is removed when the preference is turned off + if( newValue instanceof Boolean && !(Boolean) newValue) { + SharedPreferences.Editor appPrefs = PreferenceManager + .getDefaultSharedPreferences(getApplicationContext()).edit(); + appPrefs.remove("last_upload_path"); - appPrefs.apply(); ++ appPrefs.commit(); + } + return true; + } + }); + } + ++ PreferenceCategory preferenceCategory = (PreferenceCategory) findPreference("more"); boolean helpEnabled = getResources().getBoolean(R.bool.help_enabled);