|
@@ -7,7 +7,7 @@ import com.aurelhubert.ahbottomnavigation.AHBottomNavigation.TitleState;
|
7
|
7
|
import javax.annotation.Nullable;
|
8
|
8
|
|
9
|
9
|
public enum TitleDisplayMode {
|
10
|
|
- ALWAYS_SHOW(TitleState.ALWAYS_SHOW), SHOW_WHEN_ACTIVE(TitleState.SHOW_WHEN_ACTIVE), ALWAYS_HIDE(TitleState.ALWAYS_HIDE), UNDEFINED(null);
|
|
10
|
+ ALWAYS_SHOW(TitleState.ALWAYS_SHOW), SHOW_WHEN_ACTIVE(TitleState.SHOW_WHEN_ACTIVE), ALWAYS_HIDE(TitleState.ALWAYS_HIDE), SHOW_WHEN_ACTIVE_FORCE(TitleState.SHOW_WHEN_ACTIVE_FORCE), UNDEFINED(null);
|
11
|
11
|
|
12
|
12
|
public static TitleDisplayMode fromString(String mode) {
|
13
|
13
|
switch (mode) {
|
|
@@ -17,6 +17,8 @@ public enum TitleDisplayMode {
|
17
|
17
|
return SHOW_WHEN_ACTIVE;
|
18
|
18
|
case Constants.ALWAYS_HIDE:
|
19
|
19
|
return ALWAYS_HIDE;
|
|
20
|
+ case Constants.SHOW_WHEN_ACTIVE_FORCE:
|
|
21
|
+ return SHOW_WHEN_ACTIVE_FORCE;
|
20
|
22
|
default:
|
21
|
23
|
return UNDEFINED;
|
22
|
24
|
}
|
|
@@ -45,6 +47,7 @@ public enum TitleDisplayMode {
|
45
|
47
|
private static class Constants {
|
46
|
48
|
static final String ALWAYS_SHOW = "alwaysShow";
|
47
|
49
|
static final String SHOW_WHEN_ACTIVE = "showWhenActive";
|
|
50
|
+ static final String SHOW_WHEN_ACTIVE_FORCE = "showWhenActiveForce";
|
48
|
51
|
static final String ALWAYS_HIDE = "alwaysHide";
|
49
|
52
|
}
|
50
|
53
|
}
|