[MS OAuth] Prepare for it

This commit is contained in:
khanhduytran0 2020-12-08 20:56:15 +07:00
parent ec1153e9cc
commit b3b38ce05c
3 changed files with 17 additions and 5 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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 -->