// The previous Y position needs to be tracked between motion events.
private int previousYPosition;
+ // Track if domain settings are applied to this nested scroll WebView and, if so, the database ID.
+ private boolean domainSettingsApplied;
+ private int domainSettingsDatabaseId;
+
// Basic constructor.
public NestedScrollWebView(Context context) {
// Roll up to the next constructor.
nestedScrollingChildHelper.setNestedScrollingEnabled(true);
}
+ public void setDomainSettingsApplied(boolean applied) {
+ // Store the domain settings applied status.
+ domainSettingsApplied = applied;
+ }
+
+ public boolean getDomainSettingsApplied() {
+ // Return the domain settings applied status.
+ return domainSettingsApplied;
+ }
+
+ public void setDomainSettingsDatabaseId(int databaseId) {
+ // Store the domain settings database ID.
+ domainSettingsDatabaseId = databaseId;
+ }
+
+ public int getDomainSettingsDatabaseId() {
+ // Return the domain settings database ID.
+ return domainSettingsDatabaseId;
+ }
+
@Override
public boolean onTouchEvent(MotionEvent motionEvent) {
// Initialize a tracker to return if this motion event is handled.