Use a resoruce array for fragments tags
This commit is contained in:
parent
df90cb00eb
commit
53957c9aa1
|
@ -232,7 +232,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
|
||||||
if (newValue.equals("page")) {
|
if (newValue.equals("page")) {
|
||||||
final Context context = ui.getActivity();
|
final Context context = ui.getActivity();
|
||||||
final String[] navTitles = context.getResources().getStringArray(R.array.back_button_go_to_pages);
|
final String[] navTitles = context.getResources().getStringArray(R.array.back_button_go_to_pages);
|
||||||
final String[] navTags = { MainActivity.NAV_DRAWER_TAGS[0], MainActivity.NAV_DRAWER_TAGS[1], MainActivity.NAV_DRAWER_TAGS[2] };
|
final String[] navTags = context.getResources().getStringArray(R.array.back_button_go_to_pages_tags);
|
||||||
final String choice[] = { UserPreferences.getBackButtonGoToPage() };
|
final String choice[] = { UserPreferences.getBackButtonGoToPage() };
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||||
|
|
|
@ -299,4 +299,10 @@
|
||||||
<item>@string/episodes_label</item>
|
<item>@string/episodes_label</item>
|
||||||
<item>@string/subscriptions_label</item>
|
<item>@string/subscriptions_label</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="back_button_go_to_pages_tags">
|
||||||
|
<item>QueueFragment</item>
|
||||||
|
<item>EpisodesFragment</item>
|
||||||
|
<item>SubscriptionFragment</item>
|
||||||
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue