Skip to content
Snippets Groups Projects
Commit 3c50111e authored by Maxime Graulich's avatar Maxime Graulich
Browse files

Android: show messages only when compiling in debug

parent 01c35185
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ public class ModelFragment extends Fragment{
Bundle bundle = new Bundle();
bundle.putParcelable("Gmsh", g);
fragment.setArguments(bundle);
return fragment;
}
return fragment;
}
public ModelFragment() {
}
......
......@@ -7,7 +7,6 @@ import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
......@@ -49,7 +48,6 @@ public class OptionsPostProcessingFragment extends Fragment{
Bundle savedInstanceState) {
String[] PViews = _gmsh.getPView();
String[] infos = PViews[_pview].split("\n");
if(infos.length != 5){ Log.e("Gmsh", "Pview length is incorect"); return null;}
getActivity().getActionBar().setTitle(infos[0]);
LinearLayout layout = (LinearLayout)inflater.inflate(R.layout.fragment_postprocessing, container, false);
final Spinner intervalsType = (Spinner)layout.findViewById(R.id.intervals_type);
......
......@@ -6,7 +6,6 @@ import java.util.ArrayList;
import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
......@@ -76,7 +75,7 @@ public class ParameterNumber extends Parameter{
public void setValue(double value) {
if(value < _min || value > _max) {
Log.w("ParameterNumber", "Incorect value "+value+" (max="+_max+" min="+_min+")");
//Log.w("ParameterNumber", "Incorect value "+value+" (max="+_max+" min="+_min+")");
return;
}
if(value == _value) return;
......
......@@ -12,7 +12,6 @@ import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
public class SplashScreen extends Activity{
private static final int SPLASHTIME = 1000; // duration for the splash screen in milliseconds
......@@ -83,7 +82,6 @@ public class SplashScreen extends Activity{
byte[] buffer = new byte[2048];
for (int i = zipStream.read(buffer, 0, buffer.length); i > 0;i = zipStream.read(buffer, 0, buffer.length))
outputStream.write(buffer,0,i);
Log.d("Load files", "Add " + entry.getName() + " from the zip file");
}
zipStream.close();
} catch (IOException e1) {
......
......@@ -176,7 +176,7 @@ if(ENABLE_BUILD_ANDROID)
add_custom_command(TARGET androidProject POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory
${DIR} ${CMAKE_CURRENT_BINARY_DIR}/models/${DIRNAME})
endforeach(DIR)
find_path(ZIP_COMMAND zip)
find_program(ZIP_COMMAND zip)
add_custom_command(TARGET androidProject POST_BUILD COMMAND pushd ${CMAKE_CURRENT_BINARY_DIR}/models/ && ${ZIP_COMMAND} -r
${CMAKE_CURRENT_BINARY_DIR}/Onelab/res/raw/models.zip * && popd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment