fixed problem with uppercase letter in notifications without summary

This commit is contained in:
Helena Rodriguez 2012-11-17 13:27:16 +01:00
parent bd2adda5ed
commit 05dede3d17
3 changed files with 5 additions and 5 deletions

View File

@ -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
*/

View File

@ -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 = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><tree><dir name=\"2012-04-16 4Hackathon\"></dir><file name=\"SWADroid-4hackathon.odp\"><size>5366058</size><time>1335209681</time><license>CC Reconocimiento - No comercial - Compartir bajo la misma licencia</license><publisher>Antonio CaÐas Vargas</publisher><photo></photo></file></tree>";
tree = data.getStringExtra("tree");// this is the right call, disable until getDirectoryTreeDownload is fixed
//tree = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><tree><dir name=\"2012-04-16 4Hackathon\"></dir><file name=\"SWADroid-4hackathon.odp\"><size>5366058</size><time>1335209681</time><license>CC Reconocimiento - No comercial - Compartir bajo la misma licencia</license><publisher>Antonio CaÐas Vargas</publisher><photo></photo></file></tree>";
if (!refresh)
setMainView();
else {

View File

@ -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);