Skip to content

Commit 5c8de52

Browse files
committed
Add unused lifecycle methods to corresponding arrays
1 parent 25ddc0c commit 5c8de52

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

soot-infoflow-android/src/soot/jimple/infoflow/android/entryPointCreators/AndroidEntryPointConstants.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public class AndroidEntryPointConstants {
125125

126126
private static final String[] activityMethods = { ACTIVITY_ONCREATE, ACTIVITY_ONDESTROY, ACTIVITY_ONPAUSE,
127127
ACTIVITY_ONRESTART, ACTIVITY_ONRESUME, ACTIVITY_ONSTART, ACTIVITY_ONSTOP, ACTIVITY_ONSAVEINSTANCESTATE,
128-
ACTIVITY_ONRESTOREINSTANCESTATE, ACTIVITY_ONCREATEDESCRIPTION, ACTIVITY_ONPOSTCREATE,
129-
ACTIVITY_ONPOSTRESUME };
128+
ACTIVITY_ONRESTOREINSTANCESTATE, ACTIVITY_ONCREATEDESCRIPTION, ACTIVITY_ONPOSTCREATE, ACTIVITY_ONPOSTRESUME,
129+
ACTIVITY_ONATTACHFRAGMENT };
130130
private static final List<String> activityMethodList = Arrays.asList(activityMethods);
131131

132132
private static final String[] serviceMethods = { SERVICE_ONCREATE, SERVICE_ONDESTROY, SERVICE_ONSTART1,
@@ -135,7 +135,8 @@ public class AndroidEntryPointConstants {
135135

136136
private static final String[] fragmentMethods = { FRAGMENT_ONCREATE, FRAGMENT_ONDESTROY, FRAGMENT_ONPAUSE,
137137
FRAGMENT_ONATTACH, FRAGMENT_ONDESTROYVIEW, FRAGMENT_ONRESUME, FRAGMENT_ONSTART, FRAGMENT_ONSTOP,
138-
FRAGMENT_ONCREATEVIEW, FRAGMENT_ONACTIVITYCREATED, FRAGMENT_ONVIEWSTATERESTORED, FRAGMENT_ONDETACH };
138+
FRAGMENT_ONCREATEVIEW, FRAGMENT_ONACTIVITYCREATED, FRAGMENT_ONVIEWSTATERESTORED, FRAGMENT_ONDETACH,
139+
FRAGMENT_ONSAVEINSTANCESTATE, FRAGMENT_ONVIEWCREATED };
139140
private static final List<String> fragmentMethodList = Arrays.asList(fragmentMethods);
140141

141142
private static final String[] gcmIntentServiceMethods = { GCMINTENTSERVICE_ONDELETEDMESSAGES,
@@ -163,7 +164,8 @@ public class AndroidEntryPointConstants {
163164
ACTIVITYLIFECYCLECALLBACK_ONACTIVITYDESTROYED, ACTIVITYLIFECYCLECALLBACK_ONACTIVITYCREATED };
164165
private static final List<String> activityLifecycleMethodList = Arrays.asList(activityLifecycleMethods);
165166

166-
private static final String[] componentCallbackMethods = { COMPONENTCALLBACKS_ONCONFIGURATIONCHANGED };
167+
private static final String[] componentCallbackMethods = { COMPONENTCALLBACKS_ONCONFIGURATIONCHANGED,
168+
COMPONENTCALLBACKS_ONLOWMEMORY };
167169
private static final List<String> componentCallbackMethodList = Arrays.asList(componentCallbackMethods);
168170

169171
public static final String[] componentCallback2Methods = { COMPONENTCALLBACKS2_ONTRIMMEMORY };

0 commit comments

Comments
 (0)