Commit e7724bc7 by Kunj Gupta

UOFLMA-75: Fix - Table view is not displaying.

parent 68282235
......@@ -19,6 +19,7 @@ import android.text.method.LinkMovementMethod;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebView;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.LinearLayout;
......@@ -217,14 +218,8 @@ public class CatalogueVariableScreen extends AppCompatActivity {
}
if(mCatalogueItemDescription != null && !mCatalogueItemDescription.isEmpty()) {
TextView descriptionView = new TextView(CatalogueVariableScreen.this);
descriptionView.setMovementMethod(LinkMovementMethod.getInstance());
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
descriptionView.setText(Html.fromHtml(mCatalogueItemDescription, Html.FROM_HTML_MODE_LEGACY));
} else {
descriptionView.setText(Html.fromHtml(mCatalogueItemDescription));
}
WebView descriptionView = new WebView(CatalogueVariableScreen.this);
descriptionView.loadData(mCatalogueItemDescription, "text/html; charset=utf-8", "utf-8");
mContainerLayout.addView(descriptionView, childControlViewLayoutParams);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment