Skip to content

Commit

Permalink
* [Issue #18] The date/time formatting is not consistent across all v…
Browse files Browse the repository at this point in the history
…iews.

Removed commented out code and unused methods.
  • Loading branch information
amaa-99 committed Sep 22, 2023
1 parent 0df2b5c commit e2871dd
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import java.util.ArrayList;
Expand All @@ -20,13 +21,11 @@
*/
public class LogDetailRecyclerViewAdapter extends RecyclerView.Adapter<LogDetailRecyclerViewAdapter.ViewHolder> {


private final List<LogData> logData;
private final Context context;
private LogData data;
private final RecyclerItemClickListener recyclerItemClickListener;


public LogDetailRecyclerViewAdapter(final Context context, RecyclerItemClickListener recyclerItemClickListener) {
this.context = context;
logData = new ArrayList<>();
Expand All @@ -39,6 +38,7 @@ public void updateData(List<LogData> logDataList) {
}

@Override
@NonNull
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View mView = LayoutInflater.from(parent.getContext()).inflate(R.layout.logdetail_recycle_item, parent, false);
return new ViewHolder(mView);
Expand Down Expand Up @@ -83,9 +83,7 @@ public int getItemCount() {
public static class ViewHolder extends RecyclerView.ViewHolder {

final ImageView icon;
//final TextView appName;
final TextView deniedTime;
//final TextView dataInterface;
final TextView dataDest;
final TextView dataSrc;
final TextView dataProto;
Expand All @@ -94,9 +92,7 @@ public static class ViewHolder extends RecyclerView.ViewHolder {
public ViewHolder(View itemView) {
super(itemView);
icon = itemView.findViewById(R.id.data_icon);
//appName = (TextView)itemView.findViewById(R.id.app_name);
deniedTime = itemView.findViewById(R.id.denied_time);
//dataInterface = (TextView)itemView.findViewById(R.id.data_interface);
dataDest = itemView.findViewById(R.id.data_dest);
dataSrc = itemView.findViewById(R.id.data_src);
dataProto = itemView.findViewById(R.id.data_proto);
Expand All @@ -112,9 +108,4 @@ public void onClick(View v) {
});
}
}

public List<LogData> getLogData() {
return logData;
}

}

0 comments on commit e2871dd

Please sign in to comment.