Skip to content

Commit

Permalink
Merge pull request #14 from johnhowe/master
Browse files Browse the repository at this point in the history
Translated some error strings from Portuguese to English
  • Loading branch information
douglasjunior authored Mar 7, 2018
2 parents 48c3843 + 6c88787 commit e88842d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BluetoothClassicLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
minSdkVersion 7
targetSdkVersion 7
versionCode 11
versionName "0.3.4"
versionName "0.3.5"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private void connectionFailed() {
runOnMainThread(new Runnable() {
@Override
public void run() {
onEventCallback.onToast("Não foi possível conectar ao dispositivo.");
onEventCallback.onToast("Could not connect to device");
}
});
}
Expand All @@ -201,7 +201,7 @@ private void connectionLost() {
runOnMainThread(new Runnable() {
@Override
public void run() {
onEventCallback.onToast("Conexão perdida com o dispositivo.");
onEventCallback.onToast("Connection lost");
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static BluetoothDeviceDecoratorNull getInstance() {

@Override
public String getName() {
return "Nenhum dispositivo encontrado.";
return "No device found";
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion BluetoothLowEnergyLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
minSdkVersion 18
targetSdkVersion 18
versionCode 11
versionName "0.3.4"
versionName "0.3.5"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ public void onConnectionStateChange(final BluetoothGatt gatt, int status, final
if (status != BluetoothGatt.GATT_SUCCESS || newState == BluetoothProfile.STATE_DISCONNECTED) {
gatt.close();
if (mStatus == BluetoothStatus.NONE || mStatus == BluetoothStatus.CONNECTING)
makeToast("Não foi possível conectar ao dispositivo");
makeToast("Unable to connect to device");
else if (mStatus == BluetoothStatus.CONNECTED)
makeToast("Conexão perdida com o dispositivo");
makeToast("Connection lost");
updateState(BluetoothStatus.NONE);
} else {
if (newState == BluetoothProfile.STATE_CONNECTED) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ See the [sample project](https://github.com/douglasjunior/AndroidBluetoothLibrar
2.1. Bluetooth Classic
```javascript
dependencies {
compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothClassicLibrary:0.3.4'
compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothClassicLibrary:0.3.5'
}
```

2.2. Bluetooth Low Energy
```javascript
dependencies {
compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothLowEnergyLibrary:0.3.4'
compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothLowEnergyLibrary:0.3.5'
}
```

Expand Down

0 comments on commit e88842d

Please sign in to comment.