implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.2.10'
// Include the Google material library.
- implementation 'com.google.android.material:material:1.13.0'
+ implementation 'com.google.android.material:material:1.14.0'
}
}
} else { // There was an unspecified error while saving the temporary MHT file.
// Display a snackbar.
- Snackbar.make(currentWebView!!, getString(R.string.error_saving_file, fileNameString, getString(R.string.unknown_error)), Snackbar.LENGTH_INDEFINITE).show()
+ Snackbar.make(currentWebView!!, getString(R.string.error_saving_file, fileNameString, getString(R.string.unknown_error)),
+ Snackbar.LENGTH_INDEFINITE).show()
}
}
}
// Display the custom app bar layout.
appBar.displayOptions = ActionBar.DISPLAY_SHOW_CUSTOM
+ // Set the toolbar content insets so that the navigation icon aligns vertically with the close tab icon. For some reason this doesn't work when set in XML.
+ toolbar.setContentInsetsRelative(29, 0)
+
// Get handles for the views in the URL app bar.
urlRelativeLayout = findViewById(R.id.url_relativelayout)
urlEditText = findViewById(R.id.url_edittext)
// Select the same page in the view pager.
webViewViewPager2.currentItem = tab.position
- // Set the current WebView after the tab layout has quiesced (otherwise, sometimes the wong WebView might be used). See <https://redmine.stoutner.com/issues/1136>
+ // Set the current WebView after the tab layout has quiesced (otherwise, sometimes the wrong WebView might be used). See <https://redmine.stoutner.com/issues/1136>
tabLayout.post {
setCurrentWebView(tab.position)
}
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="center_vertical"
- android:paddingEnd="10dp"
+ android:paddingEnd="6dp"
android:src="@drawable/menu"
android:contentDescription="@string/navigation_drawer"
android:onClick="openNavigationDrawer"
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip