-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/seminar7' into seminar7
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/example/num1/onboarding/OnBoarding.kt~seminar7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.example.num1 | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
|
||
class OnBoarding : AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_on_boarding) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/example/num1/view/activity/SettingActivity.kt~seminar7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.example.num1 | ||
|
||
import android.content.Intent | ||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import android.widget.Toast | ||
import com.example.num1.databinding.ActivitySettingBinding | ||
import com.example.num1.util.LOGINSharedPreferences | ||
import com.example.num1.view.activity.SignInActivity | ||
|
||
class SettingActivity : AppCompatActivity() { | ||
private lateinit var binding : ActivitySettingBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding = ActivitySettingBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
logout() | ||
} | ||
|
||
private fun logout(){ | ||
binding.btnLogout.setOnClickListener { | ||
LOGINSharedPreferences.setLogin(this) | ||
Toast.makeText(this, "자동로그인이 해제되었습니다.", Toast.LENGTH_SHORT).show() | ||
val intent = Intent(this, SignInActivity::class.java) | ||
startActivity(intent) | ||
} | ||
} | ||
|
||
} |