Skip to content

Commit

Permalink
ClassCastException in SharedPreferencesImpl.getInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
Utyff committed Feb 10, 2016
1 parent d6a3c95 commit 80c29e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onCreate(Bundle savedInstanceState) {
connectionPref.setSummary(sp.getString(SET.KEY_ROUTE_DIFFERENCE, ""));
connectionPref = findPreference(SET.KEY_ROUTE_MAX_TRANSFERS);
connectionPref.setSummary(sp.getString(SET.KEY_ROUTE_MAX_TRANSFERS, ""));
connectionPref = findPreference(SET.KEY_HW_ACCELERATION);
//connectionPref = findPreference(SET.KEY_HW_ACCELERATION);
//connectionPref.setSummary(sp.getBoolean(KEY_HW_ACCELERATION, true) ? "true" : "false");
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/xml/preferences_general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
android:key="Route_difference"
android:title="@string/route_difference"
android:defaultValue="3"
android:inputType="number"
android:dialogTitle="@string/route_difference" />

<EditTextPreference
android:key="Route_max_transfers"
android:title="@string/route_max_transfers"
android:defaultValue="5"
android:inputType="number"
android:dialogTitle="@string/route_max_transfers" />

</PreferenceCategory>
Expand Down

0 comments on commit 80c29e8

Please sign in to comment.