mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-08 07:57:28 +00:00
Surrounding setSubtitle with try-catch to avoid crash. Handles 2nd part of https://github.com/austinhuang0131/barinsta/issues/816
This commit is contained in:
parent
565a8d3dd6
commit
863a06f3af
@ -885,7 +885,11 @@ public class StoryViewerFragment extends Fragment {
|
||||
|
||||
final ActionBar actionBar = fragmentActivity.getSupportActionBar();
|
||||
if (actionBar != null) {
|
||||
actionBar.setSubtitle(Utils.datetimeParser.format(new Date(currentStory.getTimestamp() * 1000L)));
|
||||
try {
|
||||
actionBar.setSubtitle(Utils.datetimeParser.format(new Date(currentStory.getTimestamp() * 1000L)));
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "refreshStory: ", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (settingsHelper.getBoolean(MARK_AS_SEEN))
|
||||
|
Loading…
Reference in New Issue
Block a user