Skip to content

Commit

Permalink
Merge pull request #24 from AndyCyberSec/patch-1
Browse files Browse the repository at this point in the history
Update OMTG_DATAST_001_SharedPreferences.java to run on API > 17
  • Loading branch information
sushi2k authored Jun 18, 2020
2 parents cf0b207 + abb316d commit cad113d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected void onCreate(Bundle savedInstanceState) {

getSupportActionBar().setDisplayHomeAsUpEnabled(true);

SharedPreferences sharedPref = getSharedPreferences("key", MODE_WORLD_READABLE);
SharedPreferences sharedPref = getSharedPreferences("key", MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("username", "administrator");
editor.putString("password", "supersecret");
Expand Down

0 comments on commit cad113d

Please sign in to comment.