Skip to content

Commit

Permalink
Removed debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
batraabhishek committed Sep 1, 2015
1 parent 0f868ef commit aacc201
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.app.Application;
import android.os.Environment;
import android.widget.Toast;

import org.buildmlearn.toolkit.constant.Constants;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,8 @@ protected void restoreTemplateEditor(Bundle savedInstanceState) {
Template[] templates = Template.values();
template = templates[templateId];
if (selectedTemplate == null) {
Toast.makeText(this, "Unable to restore Activity state, finishing Template Editor activity", Toast.LENGTH_LONG).show();
finish();
} else {
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();
populateListView(selectedTemplate.currentTemplateEditorAdapter());
setUpActionBar();
}
Expand Down Expand Up @@ -345,7 +343,7 @@ public void onSuccess(final String path) {
sendIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
startActivity(Intent.createChooser(sendIntent, null));
}

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ protected void setUpTemplateEditor() {
try {
Object templateObject = templateClass.newInstance();
selectedTemplate = (TemplateInterface) templateObject;
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();

} catch (InstantiationException e) {
e.printStackTrace();
Expand All @@ -102,9 +101,6 @@ protected void restoreTemplateEditor(Bundle savedInstanceState) {
if (selectedTemplate == null) {
Toast.makeText(this, "Unable to restore Activity state, finsihing Template Editor activity", Toast.LENGTH_LONG).show();
finish();
} else {
Toast.makeText(this, selectedTemplate.onAttach(), Toast.LENGTH_LONG).show();

}
}

Expand Down

0 comments on commit aacc201

Please sign in to comment.