From 05dede3d1758ae7518085d64c492cbe1c695774f Mon Sep 17 00:00:00 2001 From: Helena Rodriguez Date: Sat, 17 Nov 2012 13:27:16 +0100 Subject: [PATCH] fixed problem with uppercase letter in notifications without summary --- SWADroid/src/es/ugr/swad/swadroid/Global.java | 2 +- .../ugr/swad/swadroid/modules/downloads/DownloadsManager.java | 4 ++-- .../modules/notifications/NotificationsCursorAdapter.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SWADroid/src/es/ugr/swad/swadroid/Global.java b/SWADroid/src/es/ugr/swad/swadroid/Global.java index 9693705a..38334644 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/Global.java +++ b/SWADroid/src/es/ugr/swad/swadroid/Global.java @@ -93,7 +93,7 @@ public class Global { /** * Null value returned by webservices when a field is empty */ - public static final String NULL_VALUE = "anytype{}"; + public static final String NULL_VALUE = "anyType{}"; /** * Time to force relogin */ diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadsManager.java b/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadsManager.java index 3cacdf80..cbcc9186 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadsManager.java +++ b/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadsManager.java @@ -248,8 +248,8 @@ public class DownloadsManager extends MenuActivity { // After get the list of courses, a dialog is launched to choice the // course case Global.DIRECTORY_TREE_REQUEST_CODE: - // tree = data.getStringExtra("tree");// this is the right call, disable until getDirectoryTreeDownload is fixed - tree = "5366058CC Reconocimiento - No comercial - Compartir bajo la misma licenciaAntonio CaŠas Vargas"; + tree = data.getStringExtra("tree");// this is the right call, disable until getDirectoryTreeDownload is fixed + //tree = "5366058CC Reconocimiento - No comercial - Compartir bajo la misma licenciaAntonio CaŠas Vargas"; if (!refresh) setMainView(); else { diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java index 9a49d05a..697ff4e5 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java +++ b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java @@ -186,7 +186,7 @@ public class NotificationsCursorAdapter extends CursorAdapter { summaryText = cursor.getString(cursor.getColumnIndex("summary")); //Empty field checking - if(summaryText.compareTo(Global.NULL_VALUE)!=0) + if(summaryText.compareTo(Global.NULL_VALUE)==0) summaryText = context.getString(R.string.noSubjectMsg); summary.setText(Html.fromHtml(summaryText)); @@ -195,7 +195,7 @@ public class NotificationsCursorAdapter extends CursorAdapter { contentText = cursor.getString(cursor.getColumnIndex("content")); //Empty field checking - if(contentText.compareTo(Global.NULL_VALUE)!=0) + if(contentText.compareTo(Global.NULL_VALUE)==0) contentText = context.getString(R.string.noContentMsg); content.setText(contentText);