Merge pull request '修了一个bug' (#4) from dingzijian_branch into develop

pull/6/head
pz4kybsvg 3 years ago
commit a995accef7

@ -172,6 +172,9 @@ public class NotesListActivity extends AppCompatActivity implements OnClickListe
super.onCreate(savedInstanceState);
setContentView(layout.note_list);
SharedPreferences sharedPreferences=getSharedPreferences("data1", Context.MODE_WORLD_READABLE);
if(!sharedPreferences.contains("DEFAULT"))
{
Drawable drawable= getResources().getDrawable(list_background);
BitmapDrawable bd = (BitmapDrawable) drawable;
Bitmap b = bd.getBitmap();
@ -182,6 +185,8 @@ public class NotesListActivity extends AppCompatActivity implements OnClickListe
os.close();
} catch (Exception ignored) {
}
}
initResources();

Loading…
Cancel
Save