mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
[MS OAuth] Prepare for it
This commit is contained in:
parent
ec1153e9cc
commit
b3b38ce05c
@ -622,10 +622,14 @@ public class PojavLoginActivity extends BaseActivity
|
||||
}
|
||||
*/
|
||||
|
||||
public void loginMicrosoft(View view) {
|
||||
// TODO
|
||||
// Documentation: https://wiki.vg/Microsoft_Authentication_Scheme
|
||||
}
|
||||
|
||||
// developer methods
|
||||
// end dev methods
|
||||
public void loginSavedAcc(View view)
|
||||
{
|
||||
public void loginSavedAcc(View view) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
|
||||
if (Tools.enableDevFeatures) {
|
||||
|
@ -69,14 +69,14 @@
|
||||
android:id="@+id/login_switch_offline"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="42dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="bottom|center_vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_height="42dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="210dp"
|
||||
android:layout_marginRight="10dp">
|
||||
|
||||
@ -99,12 +99,18 @@
|
||||
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:layout_width="210dip"
|
||||
android:layout_height="42dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/login_select_account"
|
||||
android:onClick="loginSavedAcc"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.kdt.mcgui.MineButton
|
||||
android:layout_height="42dp"
|
||||
android:layout_width="match_parent"
|
||||
android:text="@string/login_microsoft"
|
||||
android:onClick="loginMicrosoft"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
|
@ -28,6 +28,8 @@
|
||||
<string name="login_error_short_username">Username must be at least 3 characters</string>
|
||||
<string name="login_error_exist_username">This username already exist</string>
|
||||
|
||||
<string name="login_microsoft">Microsoft login</string>
|
||||
|
||||
<string name="login_select_account">Select account</string>
|
||||
|
||||
<!-- Hint -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user