INNER CODE UNIT · Java

onComplete

shmykelsa/AAAD · app/src/main/java/com/legs/appsforaa/EnterProCode.java:83

                                        public void onComplete(@Nullable DatabaseError databaseError, @NonNull DatabaseReference databaseReference) {
                                            if (databaseError != null) {
                                                Toast.makeText(getApplicationContext(), getString(R.string.connection_error), Toast.LENGTH_LONG).show();
                                            } else {
                                                Toast.makeText(getApplicationContext(), getString(R.string.pro_unlocked), Toast.LENGTH_LONG).show();
                                                // Return to MainActivityNew with refresh request
                                                Intent intent = new Intent(EnterProCode.this, MainActivityNew.class);
                                                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
                                                intent.putExtra("refresh_pro_status", true);
                                                startActivity(intent);
                                                finish();
                                            }

                                        }
                                    });
                                } else {

                                    Intent i = new Intent(EnterProCode.this, AboutPaymentActivity.class);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…