.
This commit is contained in:
@@ -8,6 +8,7 @@ import static com.app.simplitend.welcome.welcomepatient.fragments.register.ReAct
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -78,6 +79,11 @@ public class SplashFragment extends Fragment
|
||||
AppUtil.setSkippedUpdateVersion(requireContext(), latest_version);
|
||||
checkIfAhyUser();
|
||||
});
|
||||
|
||||
binding.newUpdateView.updateBtn.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.app.simplitend"));
|
||||
startActivity(intent);
|
||||
});
|
||||
}
|
||||
|
||||
private void checkNewUpdates() {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/materialButton"
|
||||
android:id="@+id/update_btn"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
android:layout_height="wrap_content"
|
||||
@@ -85,7 +85,7 @@
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/materialButton"
|
||||
app:layout_constraintTop_toBottomOf="@+id/update_btn"
|
||||
app:layout_constraintVertical_bias="0.100" />
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user