Skip to content

Commit

Permalink
[android] fix home cache
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Aug 27, 2023
1 parent c3de534 commit 14078ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ android {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
debug {
applicationIdSuffix ".debug"
}
}
}

Expand Down
12 changes: 10 additions & 2 deletions lib/api/news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1230,14 +1230,22 @@ class _NewsListState extends State<NewsList> {
String savedServer = Hive.box('settings')
.get('server', defaultValue: officialFeed) as String;
return (_pagingController.error.toString() == 'XMLHttpRequest error.' ||
_pagingController.error ==
_pagingController.error.toString() ==
"Failed host lookup: ${savedServer.replaceAll(
'http://',
'',
).replaceAll(
'https://',
'',
)}") &&
)}" ||
_pagingController.error.toString() ==
"Failed host lookup: '${savedServer.replaceAll(
'http://',
'',
).replaceAll(
'https://',
'',
)}'") &&
latestNews['items'] != null &&
widget.tagId == null &&
widget.articleType == null
Expand Down

0 comments on commit 14078ca

Please sign in to comment.