Fixed some bugs at information modules

This commit is contained in:
Jose Antonio Guerrero Aviles 2014-03-13 15:43:20 +01:00
parent f4f848b9f0
commit 55f42ec5c6
2 changed files with 6 additions and 2 deletions

View File

@ -204,6 +204,7 @@
<activity
android:name="es.ugr.swad.swadroid.modules.information.Information"
android:label="@string/informationModuleLabel"
android:configChanges="orientation"
android:theme="@@android:style/Theme.NoTitleBar" >
</activity>
<activity

View File

@ -7,6 +7,7 @@
package es.ugr.swad.swadroid.modules.information;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
@ -185,12 +186,14 @@ public class Information extends Module {
addParam("courseCode", Constants.getSelectedCourseCode());
addParam("infoType", infoTypeToAdd);
sendRequest(User.class, true);
//Log.d("MIPETICION",infoTypeToAdd );
if (result != null) {
SoapObject soap = (SoapObject) result;
infoSrc = soap.getProperty("infoSrc").toString();
infoTxt = soap.getPrimitiveProperty("infoTxt").toString();
//Log.d("RespuestaSRC",infoSrc );
//Log.d("RespuestaTXT",infoTxt );
// Request finalized without errors
setResult(RESULT_OK);
} else {
@ -214,6 +217,6 @@ public class Information extends Module {
@Override
protected void onError() {
finish();
}
}