mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Bug fixes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<item>Ouverture</item>
|
||||
<item>Ajouter aux favoris</item>
|
||||
<item>Partager le lien</item>
|
||||
<item>Copier l'URL du lien</item>
|
||||
<item>Supprimer de l'historique</item>
|
||||
<item>Copier l\'URL du lien</item>
|
||||
<item>Supprimer de l\'historique</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<string name="copied_desktop_clipboard" msgid="8985436645584877">"Contenu du Presse-papiers du bureau copié"</string>
|
||||
<string name="intro_text" msgid="8221719258505966458">"L\'application Chrome to Phone permet de partager très facilement des liens, des cartes ou les numéros de téléphone et le texte actuellement sélectionnés entre votre ordinateur et votre téléphone. <br><br>Pour ce faire, vous devez installer l\'extension du navigateur Chrome sur votre ordinateur. Cette extension peut être téléchargée à partir de la galerie des extensions Chrome à l\'adresse suivante : http://chrome.google.com/extensions/. Recherchez simplement Chrome to Phone.<br><br>Trois étapes suffisent pour effectuer la configuration nécessaire sur votre téléphone : <br><br>1. Choisissez le compte Google à utiliser.<br> 2. Établissez la connexion entre votre navigateur Chrome et le téléphone.<br>3. Indiquez le mode d\'ouverture préféré des liens.<br><br> En utilisant cette application, vous acceptez les <br> <a href={tos_link}>Conditions d\'utilisation</a> et les <a href={pp_link}>Règles de confidentialité</a>."</string>
|
||||
<string name="help_text" msgid="8726842770376559977">"L\'application Chrome to Phone permet de partager très facilement des liens, des cartes ou les numéros de téléphone et le texte actuellement sélectionnés entre votre ordinateur et votre téléphone. <br><br>Elle comprend un module pour Android et une extension pour le navigateur Chrome. L\'extension peut être téléchargée à partir de la galerie des extensions Chrome à l\'adresse suivante : http://chrome.google.com/extensions/ <br><br>Une fois l\'extension installée sur votre ordinateur, vous pouvez établir la connexion avec votre téléphone Android.<br><br>Vous avez la possibilité d\'ouvrir les liens automatiquement dans l\'application appropriée ou de les afficher sous forme de messages dans la barre d\'état afin de les ouvrir manuellement. <br><br> En utilisant cette application, vous acceptez les <br> <a href={tos_link}>Conditions d\'utilisation</a> et les <a href={pp_link}>Règles de confidentialité</a>."</string>
|
||||
<string name="today_text" msgid="5394978862420937303">Aujourd'hui</string>
|
||||
<string name="today_text" msgid="5394978862420937303">Aujourd\'hui</string>
|
||||
<string name="last_seven_days_text" msgid="4852029789306739080">Les 7 derniers jours</string>
|
||||
<string name="last_month_text" msgid="6590554560137734479">Le mois dernier</string>
|
||||
<string name="older_text" msgid="8361517858518842292">Précédents</string>
|
||||
|
||||
@@ -37,6 +37,6 @@
|
||||
<string name="sending_link_toast" msgid="4672942003889006322">Invio del link in corso...</string>
|
||||
<string name="link_sent_toast" msgid="3619482093745686699">Link inviato</string>
|
||||
<string name="link_not_sent_toast" msgid="3940456215929964552">Link non inviato</string>
|
||||
<string name="link_not_sent_auth_toast" msgid="7239765517934560962">Link non inviato - occorre l'autenticazione</string>
|
||||
<string name="link_not_sent_auth_toast" msgid="7239765517934560962">Link non inviato - occorre l\'autenticazione</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="app_name" msgid="7046988859823310406">"Chrome to Phone"</string>
|
||||
@@ -38,5 +38,4 @@
|
||||
<string name="link_sent_toast" msgid="3619482093745686699">Länken har skickats</string>
|
||||
<string name="link_not_sent_toast" msgid="3940456215929964552">Länken skickades inte</string>
|
||||
<string name="link_not_sent_auth_toast" msgid="7239765517934560962">Länken skickades inte. Autentisering krävs</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -108,34 +108,36 @@ public class HistoryActivity extends Activity implements OnChildClickListener {
|
||||
protected Dialog onCreateDialog(int id) {
|
||||
switch (id) {
|
||||
case DIALOG_LINK_ACTION:
|
||||
return new AlertDialog.Builder(this)
|
||||
.setTitle(ellipsis(mSelectedLink.mTitle))
|
||||
.setItems(R.array.link_action_dialog_items, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (which == 0) { // Open
|
||||
startActivity(LauncherUtils.getLaunchIntent(mContext,
|
||||
mSelectedLink.mTitle, mSelectedLink.mUrl, null));
|
||||
} else if (which == 1) { // Add bookmark
|
||||
Browser.saveBookmark(mContext, mSelectedLink.mTitle,
|
||||
mSelectedLink.mUrl);
|
||||
} else if (which == 2) { // Share link
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.putExtra(Intent.EXTRA_TEXT, mSelectedLink.mUrl);
|
||||
intent.setType("text/plain");
|
||||
startActivity(Intent.createChooser(intent,
|
||||
getString(R.string.share_chooser_title)));
|
||||
} else if (which == 3) { // Copy link URL
|
||||
ClipboardManager cm =
|
||||
(ClipboardManager) mContext.getSystemService(CLIPBOARD_SERVICE);
|
||||
cm.setText(mSelectedLink.mUrl);
|
||||
} else if (which == 4) { // Remove from history
|
||||
HistoryDatabase.get(mContext).deleteHistory(mSelectedLink.mUrl);
|
||||
mListAdapter.refresh();
|
||||
mList.collapseGroup(mSelectedGroup);
|
||||
mList.expandGroup(mSelectedGroup);
|
||||
if (mSelectedLink != null) {
|
||||
return new AlertDialog.Builder(this)
|
||||
.setTitle(ellipsis(mSelectedLink.mTitle))
|
||||
.setItems(R.array.link_action_dialog_items, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (which == 0) { // Open
|
||||
startActivity(LauncherUtils.getLaunchIntent(mContext,
|
||||
mSelectedLink.mTitle, mSelectedLink.mUrl, null));
|
||||
} else if (which == 1) { // Add bookmark
|
||||
Browser.saveBookmark(mContext, mSelectedLink.mTitle,
|
||||
mSelectedLink.mUrl);
|
||||
} else if (which == 2) { // Share link
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.putExtra(Intent.EXTRA_TEXT, mSelectedLink.mUrl);
|
||||
intent.setType("text/plain");
|
||||
startActivity(Intent.createChooser(intent,
|
||||
getString(R.string.share_chooser_title)));
|
||||
} else if (which == 3) { // Copy link URL
|
||||
ClipboardManager cm =
|
||||
(ClipboardManager) mContext.getSystemService(CLIPBOARD_SERVICE);
|
||||
cm.setText(mSelectedLink.mUrl);
|
||||
} else if (which == 4) { // Remove from history
|
||||
HistoryDatabase.get(mContext).deleteHistory(mSelectedLink.mUrl);
|
||||
mListAdapter.refresh();
|
||||
mList.collapseGroup(mSelectedGroup);
|
||||
mList.expandGroup(mSelectedGroup);
|
||||
}
|
||||
}
|
||||
}
|
||||
}).create();
|
||||
}).create();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user