Skip to content

Commit aacc201

Browse files
committedSep 1, 2015
Removed debug logs
1 parent 0f868ef commit aacc201

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed
 

‎source-code/app/src/main/java/org/buildmlearn/toolkit/ToolkitApplication.java

-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import android.app.Application;
44
import android.os.Environment;
5-
import android.widget.Toast;
65

76
import org.buildmlearn.toolkit.constant.Constants;
87

@@ -29,11 +28,9 @@ public class ToolkitApplication extends Application {
2928
public void onCreate() {
3029
super.onCreate();
3130
if (checkExternalStorage()) {
32-
Toast.makeText(this, "External storage available", Toast.LENGTH_SHORT).show();
3331
isExternalStorageAvailable = true;
3432
dir = Environment.getExternalStorageDirectory().getAbsolutePath();
3533
} else {
36-
Toast.makeText(this, "Not able to read external storage. Phone memory will be used", Toast.LENGTH_SHORT).show();
3734
dir = getFilesDir().getAbsolutePath();
3835
}
3936

‎source-code/app/src/main/java/org/buildmlearn/toolkit/activity/TemplateEditor.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,8 @@ protected void restoreTemplateEditor(Bundle savedInstanceState) {
226226
Template[] templates = Template.values();
227227
template = templates[templateId];
228228
if (selectedTemplate == null) {
229-
Toast.makeText(this, "Unable to restore Activity state, finishing Template Editor activity", Toast.LENGTH_LONG).show();
230229
finish();
231230
} else {
232-
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();
233231
populateListView(selectedTemplate.currentTemplateEditorAdapter());
234232
setUpActionBar();
235233
}
@@ -345,7 +343,7 @@ public void onSuccess(final String path) {
345343
sendIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
346344
startActivity(Intent.createChooser(sendIntent, null));
347345
}
348-
346+
349347
}
350348

351349
@Override

‎source-code/app/src/main/java/org/buildmlearn/toolkit/simulator/Simulator.java

-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ protected void setUpTemplateEditor() {
8484
try {
8585
Object templateObject = templateClass.newInstance();
8686
selectedTemplate = (TemplateInterface) templateObject;
87-
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();
8887

8988
} catch (InstantiationException e) {
9089
e.printStackTrace();
@@ -102,9 +101,6 @@ protected void restoreTemplateEditor(Bundle savedInstanceState) {
102101
if (selectedTemplate == null) {
103102
Toast.makeText(this, "Unable to restore Activity state, finsihing Template Editor activity", Toast.LENGTH_LONG).show();
104103
finish();
105-
} else {
106-
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();
107-
108104
}
109105
}
110106

0 commit comments

Comments
 (0)