Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 629d23cc authored by Michael Bestas's avatar Michael Bestas Committed by Steve Kondik
Browse files

Bluetooth: Improve CAF strings

* Also remove Chinese CAF translations

Change-Id: I325da1fa32d91634a240ce3070d4bd7fe75f9f68
parent 5093bb2a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -122,7 +122,4 @@
    <string name="bluetooth_map_email_settings_app_icon" msgid="6905622365985483669">"应用图标"</string>
    <string name="bluetooth_map_email_settings_title" msgid="2181388147513118336">"蓝牙邮件共享设置"</string>
    <string name="bluetooth_map_email_settings_no_account_slots_left" msgid="5989596869950397488">"无法选择帐户。目前没有任何空档"</string>
    <string name="upload_fail_waiting">正在进行数据准备,稍后自动重发</string>
    <string name="bluetooth_in_airplane_mode">"正处于飞行模式下"</string>
    <string name="empty_file_notification_sent">蓝牙分享:远端拒绝零长度文件 <xliff:g id="file">%1$s</xliff:g></string>
</resources>
+1 −2
Original line number Diff line number Diff line
@@ -19,6 +19,5 @@
    <!-- label for the notification if the zero length file is rejected by the remote device -->
    <string name="empty_file_notification_sent">Bluetooth share: Remote rejected zero length file <xliff:g id="file">%1$s</xliff:g></string>

    <string name="upload_fail_waiting">Ongoing send file preparation, automatic retransmission later</string>
    <string name="bluetooth_in_airplane_mode">In Airplane mode</string>
    <string name="upload_fail_waiting">Unable to send file, retrying\u2026</string>
</resources>
+6 −10
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.provider.Settings;
import android.widget.Toast;

import android.util.Patterns;
import java.util.regex.Matcher;
@@ -81,15 +80,7 @@ public class BluetoothOppLauncherActivity extends Activity {
            finish();
            return;
        }
        boolean airplane = (android.provider.Settings.System.getInt
                    (this.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, 0) != 0);
        boolean needPrompt = getResources().getBoolean(R.bool.config_airplane_invalid);
       if (airplane && needPrompt) {
             Toast.makeText(this,R.string.bluetooth_in_airplane_mode,
                     Toast.LENGTH_SHORT).show();
            finish();
            return;
        }

        if (action.equals(Intent.ACTION_SEND) || action.equals(Intent.ACTION_SEND_MULTIPLE)) {
            //Check if Bluetooth is available in the beginning instead of at the end
            if (!isBluetoothAllowed()) {
@@ -241,6 +232,11 @@ public class BluetoothOppLauncherActivity extends Activity {
            return true;
        }

        final boolean needsPrompt = getResources().getBoolean(R.bool.config_airplane_invalid);
        if (needsPrompt) {
            return false;
        }

        // Check if airplane mode matters
        final String airplaneModeRadios = Settings.System.getString(resolver,
                Settings.System.AIRPLANE_MODE_RADIOS);