Skip to content

Commit

Permalink
changed photo view names to fix suspected pointer exception that woul…
Browse files Browse the repository at this point in the history
…d crash app, and was shown as OOM
  • Loading branch information
Son9o committed Mar 27, 2019
1 parent 0c7ed53 commit 72a8959
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_kon_to_czwa_gtv);


PhotoView photoView = (PhotoView) findViewById(R.id.photo_GTV_zKon);
photoView.setImageResource(R.drawable.gtv_crop_z_kon);
PhotoView photoView3 = (PhotoView) findViewById(R.id.photo_GTV_zKon);
photoView3.setImageResource(R.drawable.gtv_crop_z_kon);
}
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/rozklad2/busik_activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_busik_activity);

PhotoView photoView = (PhotoView) findViewById(R.id.photo_busik_rozklad);
photoView.setImageResource(R.drawable.busik_crop);
PhotoView photoView1 = (PhotoView) findViewById(R.id.photo_busik_rozklad);
photoView1.setImageResource(R.drawable.busik_crop);


}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/rozklad2/gtv_activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_gtv_activity);

PhotoView photoView = (PhotoView) findViewById(R.id.photo_GTV_zCzwa);
photoView.setImageResource(R.drawable.gtv_crop);
PhotoView photoView2 = (PhotoView) findViewById(R.id.photo_GTV_zCzwa);
photoView2.setImageResource(R.drawable.gtv_crop);

}
}

0 comments on commit 72a8959

Please sign in to comment.