Skip to content

Commit

Permalink
fixed typos 01
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinosVasilopoulos committed May 27, 2022
1 parent fd6c42d commit fcc378b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
17 changes: 4 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.IDry.MidnightMadness">
<!-- //Launcher activity-->

<!-- Launcher activity-->
<activity
android:name="activity.MainActivity"
android:exported="true">
Expand All @@ -19,21 +20,11 @@
</intent-filter>
</activity>


<!-- -SETTINGS-->
<!-- <activity-->
<!-- android:name="activity.Settings"-->
<!-- android:exported="true">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
<!-- </activity>-->

<activity
android:name="activity.Settings"
android:exported="false" />
Filter guide activities

<!-- Filter guide activities -->
<activity
android:name="activity.FilterGuideFirstActivity"
android:exported="false" />
Expand Down
7 changes: 2 additions & 5 deletions app/src/main/java/activity/FunctionButtonsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
// Settings button
ImageButton settingsBtn = view.findViewById(R.id.settingsBtn);
settingsBtn.setOnClickListener(v -> {
// TODO: Navigate to the settings activity
startActivity(new Intent( getActivity(), Settings.class));
// Navigate to the settings activity
startActivity(new Intent( getActivity(), Settings.class));
});




// Door unlock button
doorUnlockBtn.setOnClickListener(v -> {
// Open the door and hide this button
Expand Down
9 changes: 2 additions & 7 deletions app/src/main/java/activity/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,8 @@ protected void onCreate(Bundle savedInstanceState) {

/* returnn button */
returnn.setOnClickListener(view -> {
//go in the previus page
Button gobackbutton= view.findViewById(R.id.returnfromsettings);
gobackbutton.setOnClickListener(v -> {
// TODO: Navigate to the settings activity
// finish();
onBackPressed();
});
// go in the previous page
finish();
});
}

Expand Down

0 comments on commit fcc378b

Please sign in to comment.