Skip to content

Commit a71d487

Browse files
author
Denis Miller
committed
Cleanup the code
1 parent ace1a5c commit a71d487

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'bintray-release'
33

4-
def final String VERSION_NAME = "0.3.0"
5-
def final int VERSION_CODE = 30
4+
final String VERSION_NAME = "0.3.0"
5+
final int VERSION_CODE = 30
66

77
android {
88
compileSdkVersion 27

sample/src/main/java/link/fls/swipestacksample/MainActivity.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ protected void onCreate(Bundle savedInstanceState) {
5151
super.onCreate(savedInstanceState);
5252
setContentView(R.layout.activity_main);
5353

54-
mSwipeStack = (SwipeStack) findViewById(R.id.swipeStack);
55-
mButtonLeft = (Button) findViewById(R.id.buttonSwipeLeft);
56-
mButtonRight = (Button) findViewById(R.id.buttonSwipeRight);
57-
mFab = (FloatingActionButton) findViewById(R.id.fabAdd);
54+
mSwipeStack = findViewById(R.id.swipeStack);
55+
mButtonLeft = findViewById(R.id.buttonSwipeLeft);
56+
mButtonRight = findViewById(R.id.buttonSwipeRight);
57+
mFab = findViewById(R.id.fabAdd);
5858

5959
mButtonLeft.setOnClickListener(this);
6060
mButtonRight.setOnClickListener(this);
@@ -144,7 +144,7 @@ public class SwipeStackAdapter extends BaseAdapter {
144144

145145
private List<String> mData;
146146

147-
public SwipeStackAdapter(List<String> data) {
147+
SwipeStackAdapter(List<String> data) {
148148
this.mData = data;
149149
}
150150

@@ -169,7 +169,7 @@ public View getView(final int position, View convertView, ViewGroup parent) {
169169
convertView = getLayoutInflater().inflate(R.layout.card, parent, false);
170170
}
171171

172-
TextView textViewCard = (TextView) convertView.findViewById(R.id.textViewCard);
172+
TextView textViewCard = convertView.findViewById(R.id.textViewCard);
173173
textViewCard.setText(mData.get(position));
174174

175175
return convertView;

0 commit comments

Comments
 (0)