Made a couple of methods static

This commit is contained in:
Alexandros Schillings
2014-03-10 19:39:36 +00:00
parent 103df3e66e
commit 4b92e544b1
2 changed files with 12 additions and 38 deletions
@@ -1,26 +0,0 @@
// Generated code from Butter Knife. Do not modify!
package uk.co.alt236.btlescan;
import android.view.View;
import butterknife.ButterKnife.Finder;
public class MainActivity$$ViewInjector {
public static void inject(Finder finder, final uk.co.alt236.btlescan.MainActivity target, Object source) {
View view;
view = finder.findById(source, 2131230722);
if (view == null) {
throw new IllegalStateException("Required view with id '2131230722' for field 'mTvBluetoothStatus' was not found. If this view is optional add '@Optional' annotation.");
}
target.mTvBluetoothStatus = (android.widget.TextView) view;
view = finder.findById(source, 2131230721);
if (view == null) {
throw new IllegalStateException("Required view with id '2131230721' for field 'mTvBluetoothLeStatus' was not found. If this view is optional add '@Optional' annotation.");
}
target.mTvBluetoothLeStatus = (android.widget.TextView) view;
}
public static void reset(uk.co.alt236.btlescan.MainActivity target) {
target.mTvBluetoothStatus = null;
target.mTvBluetoothLeStatus = null;
}
}
@@ -20,18 +20,6 @@ public class DetailsActivity extends Activity{
private BluetoothLeDevice mDevice;
private void append(StringBuilder sb, byte[] value){
append(sb, ByteUtils.byteArrayToHexString(value), null);
}
private void append(StringBuilder sb, String label, String value){
if(value != null){
sb.append("\u2022" + label +":\t" + value + "\n");
} else {
sb.append(label + "\n");
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -77,4 +65,16 @@ public class DetailsActivity extends Activity{
mTvDetails.setText(sb.toString());
}
private static void append(StringBuilder sb, byte[] value){
append(sb, ByteUtils.byteArrayToHexString(value), null);
}
private static void append(StringBuilder sb, String label, String value){
if(value != null){
sb.append("\u2022" + label +":\t" + value + "\n");
} else {
sb.append(label + "\n");
}
}
}