Skip to content

Commit 112060c

Browse files
author
KotlinCrafter
committed
no auth login added
1 parent 55cf70c commit 112060c

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.idea/appInsightsSettings.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/google/android/piyush/dopamine/activities/MainActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ class MainActivity : AppCompatActivity() {
119119
}
120120
}
121121

122+
binding.noAuth?.setOnClickListener{
123+
startActivity(Intent(this@MainActivity, DopamineHome::class.java))
124+
}
125+
122126
binding.phoneNumberLogin.setOnClickListener{
123127
startActivity(Intent(applicationContext, PhoneNumberAuthentication::class.java))
124128
}

app/src/main/res/layout/activity_main.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@
6161
android:layout_width="match_parent"
6262
android:layout_height="48dp"/>
6363

64+
<com.google.android.material.button.MaterialButton
65+
android:id="@+id/noAuth"
66+
android:drawableLeft="@drawable/default_user"
67+
android:paddingLeft="12dp"
68+
android:fontFamily="@font/gotham"
69+
android:text="Free Login"
70+
style="@style/Widget.Material3.Button.OutlinedButton"
71+
android:layout_marginStart="34dp"
72+
android:layout_marginEnd="34dp"
73+
android:layout_marginBottom="6dp"
74+
android:layout_width="match_parent"
75+
android:layout_height="48dp"/>
76+
6477
</LinearLayout>
6578

6679
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)