diff options
author | Jeremy Klein <jklein24@gmail.com> | 2015-09-24 10:35:34 -0700 |
---|---|---|
committer | Jeremy Klein <jklein24@gmail.com> | 2015-09-24 10:35:34 -0700 |
commit | 0042956c716c539d66909041fd713a90f9303870 (patch) | |
tree | 7a30e8dfefdf66fb1c3f7e84e6a06aef05fe5c85 /app | |
parent | 170a42c911d0b8a2014073c4e84c3d03a1876534 (diff) | |
parent | 895d270636883810e52be717558f2a27fdbffac7 (diff) | |
download | connectbot-0042956c716c539d66909041fd713a90f9303870.tar.gz connectbot-0042956c716c539d66909041fd713a90f9303870.tar.bz2 connectbot-0042956c716c539d66909041fd713a90f9303870.zip |
Merge pull request #255 from rhansby/fix-pubkey-generation-crash-2
Change getColor call that crashes on pre-APIv14
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/connectbot/GeneratePubkeyActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/org/connectbot/GeneratePubkeyActivity.java b/app/src/main/java/org/connectbot/GeneratePubkeyActivity.java index aae5b87..bf0bdd2 100644 --- a/app/src/main/java/org/connectbot/GeneratePubkeyActivity.java +++ b/app/src/main/java/org/connectbot/GeneratePubkeyActivity.java @@ -223,13 +223,13 @@ public class GeneratePubkeyActivity extends AppCompatActivity implements OnEntro if (nickname.getText().length() == 0) allowSave = false; - save.setEnabled(allowSave); - if (allowSave) { - save.getBackground().setColorFilter(getResources().getColor(R.color.accent, getTheme()), PorterDuff.Mode.SRC_IN); + save.getBackground().setColorFilter(getResources().getColor(R.color.accent), PorterDuff.Mode.SRC_IN); } else { save.getBackground().setColorFilter(null); } + + save.setEnabled(allowSave); } private void startEntropyGather() { |