~tomdroid-maintainers/tomdroid/main

« back to all changes in this revision

Viewing changes to src/org/tomdroid/util/Preferences.java

  • Committer: Stefan Hammer
  • Date: 2014-01-04 12:44:40 UTC
  • Revision ID: j.4@gmx.at-20140104124440-5waxwm4bqp2yz82c
Tags: 0.7.5
Updated locales and fixed bug lp:1264499 where app crashes when for example using arabic as locale as the time is also in arabic and cannot be parsed any more. now streamlined all the timethings a little bit

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import android.content.Context;
27
27
import android.content.SharedPreferences;
28
28
import android.preference.PreferenceManager;
29
 
import android.text.format.Time;
30
29
 
31
30
public class Preferences {
32
31
        
34
33
                SYNC_SERVICE ("sync_service", "sdcard"),
35
34
                SYNC_SERVER_ROOT_API ("sync_server_root_api", ""),
36
35
                SYNC_SERVER_USER_API ("sync_server_user_api", ""),
37
 
                SYNC_SERVER ("sync_server", ""),
 
36
                SYNC_SERVER ("sync_server", "https://"),
38
37
                SD_LOCATION ("sd_location", "tomdroid"),
39
38
                LAST_FILE_PATH ("last_file_path", "/"),
40
39
                SYNC_ON_START("sync_on_start",false),
60
59
                ACCESS_TOKEN_URL ("access_token_url", ""),
61
60
                REQUEST_TOKEN_URL ("request_token_url", ""),
62
61
                LATEST_SYNC_REVISION ("latest_sync_revision", -1L),
63
 
                LATEST_SYNC_DATE ("latest_sync_date", (new Time()).format3339(false)), // will be used to tell whether we have newer notes
 
62
                LATEST_SYNC_DATE ("latest_sync_date", (new Time()).formatTomboy()), // will be used to tell whether we have newer notes
64
63
                SORT_ORDER ("sort_order", "sort_date"),
65
64
                FIRST_RUN ("first_run", true),
66
65
                BASE_TEXT_SIZE("base_text_size","18");