File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
TestProjects/com.unity.mobile-notifications-sample/Assets/Scripts Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,16 @@ public class AndroidTest : MonoBehaviour
20
20
private Dictionary < string , OrderedDictionary > m_groups ;
21
21
private Logger m_LOGGER ;
22
22
private int _notificationExplicitID ;
23
- private Button ButtonExplicitID ;
23
+ private Button ButtonModifyExplicitID ;
24
24
25
25
public int notificationExplicitID
26
26
{
27
27
get { return _notificationExplicitID ; }
28
28
set
29
29
{
30
30
_notificationExplicitID = value ;
31
- if ( _notificationExplicitID == 0 )
32
- {
33
- ButtonExplicitID . interactable = false ;
34
- }
35
- else
36
- {
37
- ButtonExplicitID . interactable = true ;
38
- }
31
+ bool buttonsEnabled = _notificationExplicitID != 0 ;
32
+ ButtonModifyExplicitID . interactable = buttonsEnabled ;
39
33
}
40
34
}
41
35
@@ -235,8 +229,8 @@ private void InstantiateAllTestButtons()
235
229
}
236
230
buttonGameObject . gameObject . SetActive ( false ) ;
237
231
}
238
- ButtonExplicitID = GameObject . Find ( "Modify/Modify pending Explicit notification" ) . GetComponent < Button > ( ) ;
239
- ButtonExplicitID . interactable = false ;
232
+ ButtonModifyExplicitID = GameObject . Find ( "Modify/Modify pending Explicit notification" ) . GetComponent < Button > ( ) ;
233
+ ButtonModifyExplicitID . interactable = false ;
240
234
m_gameObjectReferences . ButtonGroupTemplate . gameObject . SetActive ( false ) ;
241
235
}
242
236
You can’t perform that action at this time.
0 commit comments