Skip to content

Commit

Permalink
Fix possible bug with web apps after Oreo
Browse files Browse the repository at this point in the history
  • Loading branch information
falzonv committed Apr 9, 2021
1 parent 43e4968 commit d641289
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ protected void onCreate(Bundle savedInstanceState)
ActivityMain.getApplicationsList().addShortcut(this, display_name, shortcut, icon, false) ;
}
else ShowDialog.toastLong(this, getString(R.string.error_shortcut_invalid_request)) ;

// Go back to the previous activity
Intent homeScreenIntent = new Intent() ;
homeScreenIntent.setClass(this, ActivityMain.class) ;
homeScreenIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK) ;
startActivity(homeScreenIntent) ;
}
}

// Go back to the previous activity
Intent homeScreenIntent = new Intent() ;
homeScreenIntent.setClass(this, ActivityMain.class) ;
homeScreenIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK) ;
startActivity(homeScreenIntent) ;
}
}
3 changes: 3 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
<!-- Journal des changements -->
<string name="changelog_title">Journal des changements</string>
<string name="changelog">
\n<b>v2.5.1 - 09/04/2021</b>
\n- Fix: possible bug avec les applications web sur Android >= 8
\n
\n<b>v2.5.0 - 09/04/2021</b>
\n- Mise à jour automatique de la liste après import
\n- Icônes affichées pour les nouveaux raccourcis web
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
<!-- Changelog -->
<string name="changelog_title">Changelog</string>
<string name="changelog">
\n<b>v2.5.1 - 09/04/2021</b>
\n- Fix: possible bug with web apps on Android >= 8
\n
\n<b>v2.5.0 - 09/04/2021</b>
\n- Automatic update of the list after import
\n- New web apps/shortcuts will have icons
Expand Down

0 comments on commit d641289

Please sign in to comment.