mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-04 05:57:33 +01:00
Pebble: only fill app list in AppManager with cached apps once in onCreate()
This is important for FW 3.x testing, since the REFRESH intent will never arrive and we want to see cached watchapps
This commit is contained in:
parent
e43fed2e7e
commit
6ed54484a6
@ -55,15 +55,6 @@ public class AppManagerActivity extends Activity {
|
||||
|
||||
appList.add(new GBDeviceApp(uuid, appName, appCreator, "", appType));
|
||||
}
|
||||
|
||||
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(GBApplication.getContext());
|
||||
|
||||
if (sharedPrefs.getBoolean("pebble_force_untested", false)) {
|
||||
List<GBDeviceApp> cachedApps = getCachedApps();
|
||||
for (GBDeviceApp app : cachedApps) {
|
||||
appList.add(app);
|
||||
}
|
||||
}
|
||||
mGBDeviceAppAdapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
@ -111,6 +102,15 @@ public class AppManagerActivity extends Activity {
|
||||
});
|
||||
|
||||
registerForContextMenu(appListView);
|
||||
|
||||
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(GBApplication.getContext());
|
||||
|
||||
if (sharedPrefs.getBoolean("pebble_force_untested", false)) {
|
||||
List<GBDeviceApp> cachedApps = getCachedApps();
|
||||
for (GBDeviceApp app : cachedApps) {
|
||||
appList.add(app);
|
||||
}
|
||||
}
|
||||
|
||||
IntentFilter filter = new IntentFilter();
|
||||
filter.addAction(ControlCenter.ACTION_QUIT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user