Skip to content

Commit

Permalink
Merge pull request #18 from jitinder/Brython
Browse files Browse the repository at this point in the history
Improving azure ui
  • Loading branch information
bcd00 authored Feb 9, 2020
2 parents 8518dee + c85ff91 commit c4515b3
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 198 deletions.
22 changes: 11 additions & 11 deletions app/src/main/java/com/kill/bill/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.os.Parcel;
import android.os.Parcelable;

@SuppressWarnings("unused")
public class Item implements Parcelable {
private String name;
private double price;
Expand All @@ -19,17 +18,18 @@ protected Item(Parcel in) {
quantity = in.readInt();
}

public static final Creator<Item> CREATOR = new Creator<Item>() {
@Override
public Item createFromParcel(Parcel in) {
return new Item(in);
}
public static final Creator<Item> CREATOR =
new Creator<Item>() {
@Override
public Item createFromParcel(Parcel in) {
return new Item(in);
}

@Override
public Item[] newArray(int size) {
return new Item[size];
}
};
@Override
public Item[] newArray(int size) {
return new Item[size];
}
};

public String getName() {
return name;
Expand Down
11 changes: 6 additions & 5 deletions app/src/main/java/com/kill/bill/ItemAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ public View getView(int position, View convertView, @NonNull ViewGroup parent) {
alertDialog.show();
});

convertView.setOnClickListener(o -> {
Intent intent = new Intent(parent.getContext(), TransactionDetails.class);
intent.putExtra("item", item);
parent.getContext().startActivity(intent);
});
convertView.setOnClickListener(
o -> {
Intent intent = new Intent(parent.getContext(), TransactionDetails.class);
intent.putExtra("item", item);
parent.getContext().startActivity(intent);
});

return convertView;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/kill/bill/Splash.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected void onCreate(Bundle savedInstanceState) {
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_splash);

ImageView loading = findViewById(R.id.imageViewReceipt);
ImageView loading = findViewById(R.id.image_view_receipt);
loading.setImageResource(R.drawable.loading);
//loading.setBackgroundResource(R.drawable.loading);
loadingAnimation = (AnimationDrawable) loading.getDrawable();
Expand Down
Loading

0 comments on commit c4515b3

Please sign in to comment.