1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 12:51:16 +00:00

Fixing squid:UselessParenthesesCheck -Removing useless parentheses.

This commit is contained in:
Faisal Hameed 2016-03-13 22:05:15 +05:00
parent 963704778a
commit fc9c170bb1
3 changed files with 3 additions and 3 deletions

View file

@ -289,7 +289,7 @@ public class DeviceFragment extends Fragment implements
private void updateViewsAndSetListeners() { private void updateViewsAndSetListeners() {
// Update views // Update views
mIdView.setText(mDevice.deviceID); mIdView.setText(mDevice.deviceID);
mNameView.setText((mDevice.name)); mNameView.setText(mDevice.name);
mAddressesView.setText(displayableAddresses()); mAddressesView.setText(displayableAddresses());
mCompressionValueView.setText(Compression.fromValue(getActivity(), mDevice.compression).getTitle(getActivity())); mCompressionValueView.setText(Compression.fromValue(getActivity(), mDevice.compression).getTitle(getActivity()));
mIntroducerView.setChecked(mDevice.introducer); mIntroducerView.setChecked(mDevice.introducer);

View file

@ -22,7 +22,7 @@ public class NetworkReceiver extends BroadcastReceiver {
ConnectivityManager cm = ConnectivityManager cm =
(ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo wifiInfo = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI); NetworkInfo wifiInfo = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
boolean isWifiConnected = (wifiInfo != null && wifiInfo.isConnected()); boolean isWifiConnected = wifiInfo != null && wifiInfo.isConnected();
Log.v(TAG, "Received wifi " + (isWifiConnected ? "connected" : "disconnected") + " event"); Log.v(TAG, "Received wifi " + (isWifiConnected ? "connected" : "disconnected") + " event");
Intent i = new Intent(context, SyncthingService.class); Intent i = new Intent(context, SyncthingService.class);
i.putExtra(DeviceStateHolder.EXTRA_HAS_WIFI, isWifiConnected); i.putExtra(DeviceStateHolder.EXTRA_HAS_WIFI, isWifiConnected);

View file

@ -59,7 +59,7 @@ public class FoldersAdapter extends ArrayAdapter<RestApi.Folder>
RestApi.Model model = mModels.get(folder.id); RestApi.Model model = mModels.get(folder.id);
id.setText(folder.id); id.setText(folder.id);
state.setTextColor(getContext().getResources().getColor(R.color.text_green)); state.setTextColor(getContext().getResources().getColor(R.color.text_green));
directory.setText((folder.path)); directory.setText(folder.path);
if (model != null) { if (model != null) {
int percentage = (model.globalBytes != 0) int percentage = (model.globalBytes != 0)
? Math.round(100 * model.inSyncBytes / model.globalBytes) ? Math.round(100 * model.inSyncBytes / model.globalBytes)