Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
prabs3257 committed Jul 23, 2023
1 parent e2cda8f commit 0b53b5c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.annotation:annotation:1.5.0'

// androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test:rules:1.5.0"
androidTestImplementation 'androidx.test:core:1.5.0'
Expand Down
22 changes: 0 additions & 22 deletions sample/src/main/java/io/samagra/oce_sample/JSONViewActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,6 @@ class JSONViewActivity : AppCompatActivity() {
var JsonTV : TextView = findViewById(R.id.tv_json)
JsonTV.text = jsonData;

// val filePaths = extras.getStringArrayList("files")
//
// if (filePaths != null) {
// for(path in filePaths){
// Log.d("XML Error:", filePaths[0].toString());
// val imageView = ImageView(this@JSONViewActivity)
// val bitmap = BitmapFactory.decodeFile(path)
// imageView.setImageBitmap(bitmap)
// val layoutParams = LinearLayout.LayoutParams(
// LinearLayout.LayoutParams.WRAP_CONTENT,
// LinearLayout.LayoutParams.WRAP_CONTENT
// )
// imageView.layoutParams = layoutParams
//
// val parentLayout: LinearLayout = findViewById(R.id.cl_parentLayout)
// parentLayout.addView(imageView)
//
// }
// }



}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ class ODKFeatureTesterActivity : AppCompatActivity(), View.OnClickListener {
is FormStateEvent.OnFormSubmitted -> {
val i = Intent(this@ODKFeatureTesterActivity, JSONViewActivity::class.java)
i.putExtra("jsonData", event.jsonData)
// val filePaths: ArrayList<String> = ArrayList()
// for(f in event.files){
// filePaths.add(f.absolutePath)
// }
// i.putExtra("files", filePaths)
startActivity(i)
Timber.tag("FORM EVENT").d("Form with id: %s was submitted and converted json data: %s", event.formId, event.jsonData)
}
Expand Down

0 comments on commit 0b53b5c

Please sign in to comment.