Skip to content

Commit

Permalink
Fix crash.
Browse files Browse the repository at this point in the history
Change-Id: I283d1378efb5650346f6ce5d0ea4a12cda4a7b64
  • Loading branch information
mik9 committed Feb 15, 2011
1 parent 6ebd003 commit 928386c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/bel/android/dspmanager/activity/DSPScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

try {
addPreferencesFromResource((Integer) R.xml.class.getField(getSubPage() + "_preferences").get(null));
addPreferencesFromResource((Integer) this.getResources().getIdentifier(getSubPage() + "_preferences","xml",this.getPackageName()));
}
catch (Exception e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit 928386c

Please sign in to comment.