Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 7be2118

Browse files
jainkuniyakunall17
authored andcommitted
fix: lint errors.
1 parent 1884dd0 commit 7be2118

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/com/zulip/android/util/ListDialog.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
import android.app.AlertDialog;
44
import android.app.Dialog;
5+
import android.support.annotation.NonNull;
56
import android.support.v4.app.DialogFragment;
67
import android.content.Context;
78
import android.content.pm.PackageManager;
89
import android.os.Bundle;
910
import android.view.LayoutInflater;
1011
import android.view.View;
12+
import android.view.ViewGroup;
1113
import android.widget.ImageView;
1214

1315
import com.zulip.android.R;
@@ -40,6 +42,7 @@ public void onAttach(Context context) {
4042
}
4143
}
4244

45+
@NonNull
4346
@Override
4447
public Dialog onCreateDialog(Bundle savedInstanceState) {
4548
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
@@ -48,7 +51,8 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
4851

4952
// Inflate and set the layout for the dialog
5053
// Pass null as the parent view because its going in the dialog layout
51-
View rootView = inflater.inflate(R.layout.list_dialog, null);
54+
final ViewGroup nullParent = null;
55+
View rootView = inflater.inflate(R.layout.list_dialog, nullParent);
5256
View cameraListItem = rootView.findViewById(R.id.picture_dialog);
5357
View fileListItem = rootView.findViewById(R.id.pick_file_dialog);
5458
ImageView cameraImage = (ImageView) rootView.findViewById(R.id.camera_share_icon);

0 commit comments

Comments
 (0)