Skip to content

Commit

Permalink
undo some changes. no rotation possible anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Förster authored and Paul Förster committed Jan 11, 2017
1 parent a4eaeaf commit c7057b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Expand Up @@ -76,6 +76,15 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
}
});
getSupportFragmentManager().enableDebugLogging(true);
btDialog = new BluetoothDialogFragment();
MapFragment mapFragment = new MapFragment();
ParkFragment parkFragment = new ParkFragment();
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.add(R.id.content, mapFragment, "MAPFRAGMENT");
ft.add(R.id.content, parkFragment, "PARKFRAGMENT");
ft.hide(parkFragment);
ft.commit();
/**
if (savedInstanceState == null) {
btDialog = new BluetoothDialogFragment();
MapFragment mapFragment = new MapFragment();
Expand All @@ -90,6 +99,7 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
MapFragment mapFragment = (MapFragment) getSupportFragmentManager().findFragmentByTag("MAPFRAGMENT");
ParkFragment parkFragment = (ParkFragment) getSupportFragmentManager().findFragmentByTag("PARKFRAGMENT");
}
*/
}

@Override
Expand Down
Expand Up @@ -51,22 +51,24 @@ public class MapFragment extends Fragment {
//Parkingslot-Kram
private int noStoredSlots = 0;
private int noSlots = 0;
ArrayList<IAndroidHmi.ParkingSlot> parkingslotArrayList;
ArrayList<ImageView> imageviewArrayList;
ArrayList<IAndroidHmi.ParkingSlot> parkingslotArrayList = new ArrayList<>();
ArrayList<ImageView> imageviewArrayList = new ArrayList<>();

Handler mHandler = null;

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.map_fragment, container, false);
/**
if (savedInstanceState != null) {
// Restore last state
parkingslotArrayList = savedInstanceState.getParcelableArrayList("parkingslotArrayList");
//TODO die Dinger müssen nochmal gezeichnet werden
} else {
parkingslotArrayList = new ArrayList<>();
}
*/
tileView = new TileView(this.getActivity());
tileView.setSize(1024, 512);
tileView.defineBounds(-30,90,210,-30);
Expand Down
Binary file modified NXTApp/nXT/build/libs/nXT.jar
Binary file not shown.

0 comments on commit c7057b6

Please sign in to comment.