@@ -224,7 +224,7 @@ public void onResume() {
224
224
File apkFile = new File (aFile .getAbsolutePath ());
225
225
PackageInfo info = getActivity ().getPackageManager ().getPackageArchiveInfo (apkFile .getAbsolutePath (), 0 );
226
226
if (info != null && info .packageName != null && info .packageName .startsWith ("org.buildmlearn." )) {
227
- if (apkFile .getName ().startsWith (specificApis ))
227
+ if (apkFile .getName ().contains (specificApis ))
228
228
savedApis .add (new SavedApi (apkFile , apkFile .getName (), apkFile .lastModified ()));
229
229
allsavedApis .add (new SavedApi (apkFile , apkFile .getName (), apkFile .lastModified ()));
230
230
}
@@ -349,7 +349,7 @@ public void onClick(View v) {
349
349
actionBar .setCustomView (R .layout .search_bar );
350
350
actionBar .setDisplayShowTitleEnabled (false );
351
351
editSearch = (EditText ) actionBar .getCustomView ().findViewById (R .id .editSearch );
352
- editSearch .setHint ("Enter name of Apk" );
352
+ editSearch .setHint ("Enter Apk name " );
353
353
editSearch .addTextChangedListener (new TextWatcher () {
354
354
@ Override
355
355
public void beforeTextChanged (CharSequence s , int start , int count , int after ) {
@@ -367,7 +367,7 @@ public void afterTextChanged(Editable s) {
367
367
savedApis .clear ();
368
368
SavedApi tempApi ;
369
369
for (int i = 0 ; i < allsavedApis .size (); i ++) {
370
- if (allsavedApis .get (i ).getName ().startsWith (text )) {
370
+ if (allsavedApis .get (i ).getName ().contains (text )) {
371
371
tempApi = new SavedApi (allsavedApis .get (i ).getFile (), allsavedApis .get (i ).getName (), allsavedApis .get (i ).getUnformattedDate ());
372
372
savedApis .add (tempApi );
373
373
}
0 commit comments