summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kast <julian@livio.com>2021-03-11 16:10:27 -0500
committerJulian Kast <julian@livio.com>2021-03-11 16:10:27 -0500
commit4fb1f708e5f6561deb52d0ce01571377bb8b53ed (patch)
tree3e4eb415a46ac87284d75a63b5efeaa0ad2c24d3
parent3f917a394bf2d91ae544780ddc784d92e9371621 (diff)
downloadsdl_android-4fb1f708e5f6561deb52d0ce01571377bb8b53ed.tar.gz
Fix timeout for AlertView
-rw-r--r--base/src/main/java/com/smartdevicelink/managers/screen/AlertView.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/src/main/java/com/smartdevicelink/managers/screen/AlertView.java b/base/src/main/java/com/smartdevicelink/managers/screen/AlertView.java
index 733e4a278..6a2cf8c80 100644
--- a/base/src/main/java/com/smartdevicelink/managers/screen/AlertView.java
+++ b/base/src/main/java/com/smartdevicelink/managers/screen/AlertView.java
@@ -53,7 +53,6 @@ public class AlertView implements Cloneable {
private AlertView() {
- this.timeout = defaultTimeout;
}
public static class Builder {
@@ -166,7 +165,7 @@ public class AlertView implements Cloneable {
public Integer getTimeout() {
if (timeout == null) {
- timeout = defaultTimeout;
+ timeout = getDefaultTimeout();
} else if (timeout < TIMEOUT_MIN) {
return TIMEOUT_MIN;
} else if (timeout > TIMEOUT_MAX) {
@@ -246,7 +245,7 @@ public class AlertView implements Cloneable {
}
public void setDefaultTimeout(int defaultTimeout) {
- this.defaultTimeout = defaultTimeout;
+ AlertView.defaultTimeout = defaultTimeout;
}
public void setTimeout(int timeout) {