2020-01-09 10:44:32 +01:00
|
|
|
/* Copyright (C) 2016-2020 Andreas Shimokawa
|
2017-03-10 14:53:19 +01:00
|
|
|
|
|
|
|
This file is part of Gadgetbridge.
|
|
|
|
|
|
|
|
Gadgetbridge is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Gadgetbridge is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2016-06-14 22:55:38 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.activities.appmanager;
|
|
|
|
|
2016-11-09 19:20:37 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2016-06-24 13:39:29 +02:00
|
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceApp;
|
|
|
|
|
2016-06-14 22:55:38 +02:00
|
|
|
public class AppManagerFragmentCache extends AbstractAppManagerFragment {
|
|
|
|
@Override
|
|
|
|
public void refreshList() {
|
2016-06-17 22:43:06 +02:00
|
|
|
appList.clear();
|
2023-06-10 17:13:37 +02:00
|
|
|
final List<GBDeviceApp> cachedApps = getCachedApps(null);
|
|
|
|
sortAppList(cachedApps);
|
|
|
|
appList.addAll(cachedApps);
|
2016-06-17 22:43:06 +02:00
|
|
|
}
|
|
|
|
|
2016-06-24 13:39:29 +02:00
|
|
|
@Override
|
|
|
|
protected boolean isCacheManager() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-11-09 19:20:37 +01:00
|
|
|
@Override
|
|
|
|
protected List<GBDeviceApp> getSystemAppsInCategory() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2016-06-17 22:43:06 +02:00
|
|
|
@Override
|
|
|
|
public String getSortFilename() {
|
2021-05-29 16:42:32 +02:00
|
|
|
return mCoordinator.getAppCacheSortFilename();
|
2016-06-14 22:55:38 +02:00
|
|
|
}
|
2016-06-24 13:39:29 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected boolean filterApp(GBDeviceApp gbDeviceApp) {
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-14 22:55:38 +02:00
|
|
|
}
|