Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ protected void onCreate(Bundle savedInstanceState) {

finishActivities(SetPinActivity.introSetPitActivity, IntroActivity.introActivity, ReEnterPinActivity.reEnterPinActivity);

if (!BRSharedPrefs.getGreetingsShown(BreadActivity.this)) {
mHandler.postDelayed(() -> {
BRAnimator.showGreetingsMessage(BreadActivity.this);
BRSharedPrefs.putGreetingsShown(BreadActivity.this, true);
}, 1000);
}

onConnectionChanged(InternetManager.getInstance().isConnected(this));

updateUI();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ class InputWordsActivity : BRActivity() {
PostAuth.getInstance().setPhraseForKeyStore(cleanPhrase)
BRSharedPrefs.putAllowSpend(app, false)

//if this screen is shown then we did not upgrade to the new app, we installed it
BRSharedPrefs.putGreetingsShown(app, true)
//Did not upgrade to the new app, we installed it
PostAuth.getInstance().onRecoverWalletAuth(app, false)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public void onClick(String key) {
}
});
keyboard.setShowDot(false);
BRSharedPrefs.putGreetingsShown(this, true);
}

@Override
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/java/com/brainwallet/tools/animation/BRAnimator.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import com.brainwallet.presenter.entities.TxItem;
import com.brainwallet.presenter.fragments.FragmentBalanceSeedReminder;
import com.brainwallet.presenter.fragments.FragmentBuy;
import com.brainwallet.presenter.fragments.FragmentGreetings;
import com.brainwallet.presenter.fragments.FragmentMenu;
import com.brainwallet.presenter.fragments.FragmentReceive;
import com.brainwallet.presenter.fragments.FragmentRequestAmount;
Expand Down Expand Up @@ -286,18 +285,6 @@ public static void showMenuFragment(Activity app) {
transaction.commit();
}

public static void showGreetingsMessage(Activity app) {
if (app == null) {
Timber.i("timber: showGreetingsMessage: app is null");
return;
}
FragmentTransaction transaction = app.getFragmentManager().beginTransaction();
transaction.setCustomAnimations(0, 0, 0, R.animator.plain_300);
transaction.add(android.R.id.content, new FragmentGreetings(), FragmentGreetings.class.getName());
transaction.addToBackStack(FragmentGreetings.class.getName());
transaction.commit();
}

public static boolean isClickAllowed() {
if (clickAllowed) {
clickAllowed = false;
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/java/com/brainwallet/tools/manager/BRSharedPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,6 @@ public static void putPhraseWroteDown(Context context, boolean check) {
editor.apply();
}

public static boolean getGreetingsShown(Context context) {
SharedPreferences prefs = context.getSharedPreferences(BRConstants.PREFS_NAME, Context.MODE_PRIVATE);
return prefs.getBoolean("greetingsShown", false);
}

public static void putGreetingsShown(Context context, boolean shown) {
SharedPreferences prefs = context.getSharedPreferences(BRConstants.PREFS_NAME, Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("greetingsShown", shown);
editor.apply();
}

public static int getCurrencyListPosition(Context context) {
SharedPreferences settings = context.getSharedPreferences(BRConstants.PREFS_NAME, 0);
return settings.getInt(BRConstants.POSITION, 0);
Expand Down
93 changes: 0 additions & 93 deletions app/src/main/res/layout/fragment_greetings.xml

This file was deleted.