diff options
author | d34d <clark@cyngn.com> | 2015-05-20 16:25:20 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2015-09-28 18:50:30 +0000 |
commit | fcd32ca0ae4e54a191ff9650f2bf0daf81e8dea0 (patch) | |
tree | 5135a6e415d0c759736a50a799432071cb7be6d6 /src/com | |
parent | 3bfce4d4ae529ea35b72ac074c2c92defdada2f9 (diff) | |
download | packages_apps_ThemeChooser-fcd32ca0ae4e54a191ff9650f2bf0daf81e8dea0.zip packages_apps_ThemeChooser-fcd32ca0ae4e54a191ff9650f2bf0daf81e8dea0.tar.gz packages_apps_ThemeChooser-fcd32ca0ae4e54a191ff9650f2bf0daf81e8dea0.tar.bz2 |
Check index when populating supported components
Change-Id: I32c21254f0c8797e6ff7ee48992994271d8f6d21
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/cyngn/theme/chooser/ThemeFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/ThemeFragment.java b/src/com/cyngn/theme/chooser/ThemeFragment.java index 4d707d6..1cd49ed 100644 --- a/src/com/cyngn/theme/chooser/ThemeFragment.java +++ b/src/com/cyngn/theme/chooser/ThemeFragment.java @@ -1365,7 +1365,7 @@ public class ThemeFragment extends Fragment implements LoaderManager.LoaderCallb int modifiesCompIdx = c.getColumnIndex(component); String pkg = c.getString(pkgIdx); - boolean supported = c.getInt(modifiesCompIdx) == 1; + boolean supported = (modifiesCompIdx >= 0) && (c.getInt(modifiesCompIdx) == 1); if (supported) { mBaseThemeSupportedComponents.add(component); mSelectedComponentsMap.put(component, pkg); |