Skip to content

Commit

Permalink
Re-add local mode accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 7, 2024
1 parent e742edf commit 11bbbc3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1716170694497
1731000005209
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1716170694527
1731000005256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1716170694562
1731000005291
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
if(!checkEditText()) return;

ExtraCore.setValue(ExtraConstants.MOJANG_LOGIN_TODO, new String[]{
mUsernameEditText.getText().toString(), "" });
mUsernameEditText.getText().toString(), ""
});

Tools.swapFragment(requireActivity(), MainMenuFragment.class, MainMenuFragment.TAG, null);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public SelectAuthFragment(){
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
Button mMicrosoftButton = view.findViewById(R.id.button_microsoft_authentication);
Button mLocalButton = view.findViewById(R.id.button_local_authentication);

mMicrosoftButton.setOnClickListener(v -> Tools.swapFragment(requireActivity(), MicrosoftLoginFragment.class, MicrosoftLoginFragment.TAG, null));
mLocalButton.setOnClickListener(v -> Tools.swapFragment(requireActivity(), LocalLoginFragment.class, LocalLoginFragment.TAG, null));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,24 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/_25sdp"
android:layout_marginTop="104dp"
android:layout_marginTop="52dp"
android:text="Microsoft Account"
android:textSize="@dimen/_12ssp"
app:layout_constraintEnd_toEndOf="@+id/login_menu"
app:layout_constraintHorizontal_bias="0.676"
app:layout_constraintStart_toStartOf="@+id/login_menu"
app:layout_constraintTop_toTopOf="@id/login_menu"
app:layout_constraintVertical_chainStyle="packed" />

<com.kdt.mcgui.MineButton
android:id="@+id/button_local_authentication"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/_25sdp"
android:layout_marginTop="152dp"
android:text="Offline Mode"
android:textSize="@dimen/_12ssp"
app:layout_constraintEnd_toEndOf="@+id/login_menu"
app:layout_constraintHorizontal_bias="0.492"
app:layout_constraintStart_toStartOf="@+id/login_menu"
app:layout_constraintTop_toTopOf="@id/login_menu"
Expand Down

0 comments on commit 11bbbc3

Please sign in to comment.