Fix privacy policy opening

This commit is contained in:
William Brawner 2018-10-01 17:52:37 -05:00 committed by William Brawner
parent 54952348f8
commit 987b5c1785

View file

@ -126,6 +126,9 @@ public class MainActivity extends AppCompatActivity
case R.id.action_libraries: case R.id.action_libraries:
showInfoActivity(R.id.action_libraries); showInfoActivity(R.id.action_libraries);
break; break;
case R.id.action_privacy:
showInfoActivity(R.id.action_privacy);
break;
} }
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }
@ -143,6 +146,10 @@ public class MainActivity extends AppCompatActivity
fileName = "Libraries.md"; fileName = "Libraries.md";
title = getString(R.string.action_libraries); title = getString(R.string.action_libraries);
break; break;
case R.id.action_privacy:
fileName = "Privacy Policy.md";
title = getString(R.string.action_privacy);
break;
} }
infoIntent.putExtra("title", title); infoIntent.putExtra("title", title);
InputStream in = null; InputStream in = null;