Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Fixed replacement of html characters in profesores description
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrr committed Sep 13, 2018
1 parent ea43f60 commit 5e75ca3
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
11 changes: 11 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,27 @@
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/build-info" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/check-manifest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-verifier" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-apk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-main-apk-res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaPrecompile" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifest-checker" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/prebuild" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/reload-dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/resources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/split-apk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/splits-support" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.onelio.connectu"
minSdkVersion 18
targetSdkVersion 27
versionCode 135
versionName "2.3.4"
versionCode 136
versionName "2.3.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import java.util.List;

public class MaterialesActivity extends AppCompatActivity {

private App app;
private MaterialesRequest request;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.util.List;

public class ProfesoresActivity extends AppCompatActivity {

App app;

//RecyclerView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ protected void onCreate(Bundle savedInstanceState) {
name.setText(data.getName());
subject.setText(data.getSubject());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
text.setText(Html.fromHtml(data.getDescription().replace("&nbsp", " "), Html.FROM_HTML_MODE_COMPACT));
text.setText(Html.fromHtml(data.getDescription(), Html.FROM_HTML_MODE_COMPACT).toString().replace("&nbsp", " "));
} else {
text.setText(Html.fromHtml(data.getDescription().replace("nbsp", " ")));
text.setText(Html.fromHtml(data.getDescription()).toString().replace("&nbsp", " "));
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import org.json.JSONObject;

public class UAService extends Service {

//Data
// Data
App app;

@Nullable
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>
<!-- AppData -->
<string name="app_name">ConnectU</string>
<string name="app_version">2.3.4</string>
<string name="app_version">2.3.5</string>
<!-- Errors -->
<string name="app_name_error">ConnectU Error</string>
<string name="error_unexpected">Unexpected error</string>
Expand Down

0 comments on commit 5e75ca3

Please sign in to comment.