-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMOB-12148 set DisplayShowTitleEnabled #4480
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,7 +160,6 @@ private void handleSetIcon(String url) | |
private void handleSetTitle(String title) | ||
{ | ||
if (actionBar != null) { | ||
actionBar.setDisplayShowTitleEnabled(true); | ||
actionBar.setTitle(title); | ||
} else { | ||
Log.w(TAG, "ActionBar is not enabled"); | ||
|
@@ -193,7 +192,10 @@ private void handleSetBackgroundImage(String url) | |
} | ||
|
||
Drawable backgroundImage = getDrawableFromUrl(url); | ||
//This is a workaround due to https://code.google.com/p/styled-action-bar/issues/detail?id=3. [TIMOB-12148] | ||
if (backgroundImage != null) { | ||
actionBar.setDisplayShowTitleEnabled(false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably leave a comment for this workaround (with link to the original android bug). I.e: This is a workaround due to https://code.google.com/p/styled-action-bar/issues/detail?id=3. [TIMOB-12148] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
actionBar.setDisplayShowTitleEnabled(true); | ||
actionBar.setBackgroundDrawable(backgroundImage); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you deleting this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After deleting this . worked fine for me. I tested this scenario also