Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
  • Loading branch information
spacecowboy committed Oct 28, 2014
1 parent 9a2f048 commit b620b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/nononsenseapps/build/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public static Properties getProperties(final Context context) {
}

public static String getGtasksApiKey(final Context context) {
return getProperties(context).getProperty(KEY_GTASKS_API_KEY);
return getProperties(context).getProperty(KEY_GTASKS_API_KEY,
"AIzaSyCAjRk2GfPARlIU3JsaEiExLMtj_rdN2i4");
}

public static String getKeyDropboxSyncPublic(final Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public boolean onPreferenceClick(Preference preference) {

// Disable prefs if this is not correct build
findPreference(KEY_SYNC_ENABLE).setEnabled(
null != Config.getGtasksApiKey(getActivity()) &&
!Config.getGtasksApiKey(getActivity()).contains(" "));

// SD Card
Expand Down

0 comments on commit b620b59

Please sign in to comment.