Skip to content

Commit

Permalink
Only listen to back button on android (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee authored Oct 6, 2023
1 parent bd7db8a commit b74a0e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/com/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ export const ComposePost = observer(function ComposePost({
}, [store, onClose, graphemeLength, gallery])
// android back button
useEffect(() => {
if (!isAndroid) {
return
}
const backHandler = BackHandler.addEventListener(
'hardwareBackPress',
() => {
Expand Down

0 comments on commit b74a0e0

Please sign in to comment.