mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 08:37:29 +00:00
fix highlight title - issue #1075
This commit is contained in:
parent
3bbafc654c
commit
1665262fdf
@ -118,6 +118,7 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
private View root;
|
private View root;
|
||||||
private FragmentStoryViewerBinding binding;
|
private FragmentStoryViewerBinding binding;
|
||||||
private String currentStoryUsername;
|
private String currentStoryUsername;
|
||||||
|
private String highlightTitle;
|
||||||
private StoriesAdapter storiesAdapter;
|
private StoriesAdapter storiesAdapter;
|
||||||
private SwipeEvent swipeEvent;
|
private SwipeEvent swipeEvent;
|
||||||
private GestureDetectorCompat gestureDetector;
|
private GestureDetectorCompat gestureDetector;
|
||||||
@ -720,7 +721,7 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
final HighlightModel model = models.get(currentFeedStoryIndex);
|
final HighlightModel model = models.get(currentFeedStoryIndex);
|
||||||
currentStoryMediaId = model.getId();
|
currentStoryMediaId = model.getId();
|
||||||
fetchOptions = StoryViewerOptions.forHighlight(model.getId());
|
fetchOptions = StoryViewerOptions.forHighlight(model.getId());
|
||||||
currentStoryUsername = model.getTitle();
|
highlightTitle = model.getTitle();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FEED_STORY_POSITION: {
|
case FEED_STORY_POSITION: {
|
||||||
@ -820,8 +821,8 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
if (type == Type.HIGHLIGHT) {
|
if (type == Type.HIGHLIGHT) {
|
||||||
final ActionBar actionBar = fragmentActivity.getSupportActionBar();
|
final ActionBar actionBar = fragmentActivity.getSupportActionBar();
|
||||||
if (actionBar != null) {
|
if (actionBar != null) {
|
||||||
actionBarTitle = options.getName();
|
actionBarTitle = highlightTitle;
|
||||||
actionBar.setTitle(options.getName());
|
actionBar.setTitle(highlightTitle);
|
||||||
}
|
}
|
||||||
} else if (hasUsername) {
|
} else if (hasUsername) {
|
||||||
currentStoryUsername = currentStoryUsername.replace("@", "");
|
currentStoryUsername = currentStoryUsername.replace("@", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user