File tree Expand file tree Collapse file tree
app/src/main/java/at/blogc/android/activities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package at .blogc .android .activities ;
22
3+ import android .support .annotation .NonNull ;
34import android .support .v7 .app .AppCompatActivity ;
45import android .os .Bundle ;
56import android .util .Log ;
@@ -81,16 +82,16 @@ public void onClick(final View v)
8182 });
8283
8384 // listen for expand / collapse events
84- expandableTextView .setOnExpandListener (new ExpandableTextView .OnExpandListener ()
85+ expandableTextView .addOnExpandListener (new ExpandableTextView .OnExpandListener ()
8586 {
8687 @ Override
87- public void onExpand (final ExpandableTextView view )
88+ public void onExpand (@ NonNull final ExpandableTextView view )
8889 {
8990 Log .d (TAG , "ExpandableTextView expanded" );
9091 }
9192
9293 @ Override
93- public void onCollapse (final ExpandableTextView view )
94+ public void onCollapse (@ NonNull final ExpandableTextView view )
9495 {
9596 Log .d (TAG , "ExpandableTextView collapsed" );
9697 }
You can’t perform that action at this time.
0 commit comments