Skip to content

Commit

Permalink
Release Student 6.21.2 (246)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaskozmer authored Jan 2, 2023
2 parents 5a462b7 + 20cf5cf commit 42c65a7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/student/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ android {
applicationId "com.instructure.candroid"
minSdkVersion Versions.MIN_SDK
targetSdkVersion Versions.TARGET_SDK
versionCode = 245
versionName = '6.21.1'
versionCode = 246
versionName = '6.21.2'

vectorDrawables.useSupportLibrary = true
multiDexEnabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.instructure.student.fragment
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import com.instructure.canvasapi2.managers.OAuthManager
import com.instructure.canvasapi2.managers.PageManager
Expand Down Expand Up @@ -125,6 +126,12 @@ class PageDetailsFragment : InternalWebviewFragment(), Bookmarkable {
}
}
}

val layoutParams = getCanvasWebView()?.layoutParams
layoutParams?.let {
it.height = ViewGroup.LayoutParams.WRAP_CONTENT
getCanvasWebView()?.layoutParams = it
}
}

override fun onOptionsItemSelected(item: MenuItem): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ class AssignmentDetailsView(

override fun shouldLaunchInternalWebViewFragment(url: String): Boolean = true
}

descriptionWebViewWrapper.webView.focusable = View.NOT_FOCUSABLE
descriptionWebViewWrapper.webView.isFocusableInTouchMode = false
}

override fun render(state: AssignmentDetailsViewState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class CanvasWebViewWrapper @JvmOverloads constructor(
onThemeChanged(themeSwitched, html)
}
}

val layoutParams = LinearLayout.LayoutParams(context, attrs)
val webViewLayoutParams = binding.contentWebView.layoutParams
webViewLayoutParams.height = layoutParams.height
binding.contentWebView.layoutParams = webViewLayoutParams
}

private fun changeButtonTheme() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/backgroundLightest"
android:focusable="false"
android:focusableInTouchMode="false"
android:minHeight="48dp"
android:scrollbars="none" />

Expand Down

0 comments on commit 42c65a7

Please sign in to comment.