diff --git a/genie-core/src/main/java/org/ekstep/genie/util/Constant.java b/genie-core/src/main/java/org/ekstep/genie/util/Constant.java index 6c93f95..60c5084 100644 --- a/genie-core/src/main/java/org/ekstep/genie/util/Constant.java +++ b/genie-core/src/main/java/org/ekstep/genie/util/Constant.java @@ -50,6 +50,7 @@ public interface Constant { String SERVER_ERROR = "SERVER_ERROR"; String CONNECTION_ERROR = "CONNECTION_ERROR"; String PAGE_FETCH_ERROR = "PAGE_FETCH_ERROR"; + String NO_DATA_FOUND = "NO_DATA_FOUND"; String VALIDATION_ERROR = "VALIDATION_ERROR"; String GENIE_SERVICE_NOT_INSTALLED = "GENIE_SERVICE_NOT_INSTALLED"; String INVALID_FILE = "INVALID_FILE"; diff --git a/genie-core/src/main/java/org/ekstep/genie/util/Util.java b/genie-core/src/main/java/org/ekstep/genie/util/Util.java index c5919cd..95b282c 100644 --- a/genie-core/src/main/java/org/ekstep/genie/util/Util.java +++ b/genie-core/src/main/java/org/ekstep/genie/util/Util.java @@ -221,6 +221,10 @@ public static void processSearchFailure(TextView textView, GenieResponse genieRe textView.setText(R.string.error_timeout); } else if (Constant.PAGE_FETCH_ERROR.equalsIgnoreCase(error)) { textView.setText(R.string.error_timeout); + } else if (Constant.NO_DATA_FOUND.equalsIgnoreCase(error) && genieResponse.getStatus()) { + textView.setText(R.string.error_search_no_content); + }else if (Constant.NO_DATA_FOUND.equalsIgnoreCase(error) && !genieResponse.getStatus()) { + textView.setText(R.string.error_sync_validation); } } } diff --git a/genie-core/src/main/res/layout/fragment_dummy_fragment.xml b/genie-core/src/main/res/layout/fragment_dummy_fragment.xml index 7fbdb1b..110fa09 100644 --- a/genie-core/src/main/res/layout/fragment_dummy_fragment.xml +++ b/genie-core/src/main/res/layout/fragment_dummy_fragment.xml @@ -1,3 +1,4 @@ + + + + + + + + + + - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-hi/strings.xml b/genie-core/src/main/res/values-hi/strings.xml index 9739384..8495209 100644 --- a/genie-core/src/main/res/values-hi/strings.xml +++ b/genie-core/src/main/res/values-hi/strings.xml @@ -445,5 +445,4 @@ No sdcard found. Application not found. Please choose another share option - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-kn/strings.xml b/genie-core/src/main/res/values-kn/strings.xml index b3d17be..cb84e17 100644 --- a/genie-core/src/main/res/values-kn/strings.xml +++ b/genie-core/src/main/res/values-kn/strings.xml @@ -445,5 +445,4 @@ No sdcard found. Application not found. Please choose another share option - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-mr/strings.xml b/genie-core/src/main/res/values-mr/strings.xml index 120ba89..82f3f3a 100644 --- a/genie-core/src/main/res/values-mr/strings.xml +++ b/genie-core/src/main/res/values-mr/strings.xml @@ -445,4 +445,4 @@ No sdcard found. Application not found. Please choose another share option - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-pa/strings.xml b/genie-core/src/main/res/values-pa/strings.xml index 28d1bb0..3548f3b 100644 --- a/genie-core/src/main/res/values-pa/strings.xml +++ b/genie-core/src/main/res/values-pa/strings.xml @@ -478,5 +478,4 @@ No sdcard found. Application not found. Please choose another share option - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-ta/strings.xml b/genie-core/src/main/res/values-ta/strings.xml index 53a44e7..8843a9f 100644 --- a/genie-core/src/main/res/values-ta/strings.xml +++ b/genie-core/src/main/res/values-ta/strings.xml @@ -444,5 +444,4 @@ No sdcard found. Application not found. Please choose another share option - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values-te/strings.xml b/genie-core/src/main/res/values-te/strings.xml index 12760a9..6c45b1a 100644 --- a/genie-core/src/main/res/values-te/strings.xml +++ b/genie-core/src/main/res/values-te/strings.xml @@ -446,5 +446,4 @@ No sdcard found. Application not found. Please choose another share option - - \ No newline at end of file + diff --git a/genie-core/src/main/res/values/strings.xml b/genie-core/src/main/res/values/strings.xml index f5dd9fc..555f00a 100644 --- a/genie-core/src/main/res/values/strings.xml +++ b/genie-core/src/main/res/values/strings.xml @@ -500,5 +500,4 @@ Application not found. Please choose another share option Please select an option - - \ No newline at end of file +