altosdroid: Revert getResource().getColor to old API
authorKeith Packard <keithp@keithp.com>
Wed, 12 May 2021 05:28:32 +0000 (22:28 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Jun 2021 23:14:53 +0000 (16:14 -0700)
This should keep it compatible with API version 21

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/src/main/java/org/altusmetrum/AltosDroid/AltosDroid.java

index e564e78478612742fe29eb5112bc16eb77f5c7a5..404b63ace7df8582e90c2e50ecb06ff6c04d1169 100644 (file)
@@ -630,7 +630,7 @@ public class AltosDroid extends FragmentActivity implements AltosUnitsListener,
                mStateView     = (TextView) findViewById(R.id.state_value);
                mAgeView       = (TextView) findViewById(R.id.age_value);
                mAgeNewColor   = mAgeView.getTextColors().getDefaultColor();
-               mAgeOldColor   = getResources().getColor(R.color.old_color, getTheme());
+               mAgeOldColor   = getResources().getColor(R.color.old_color);
        }
 
        private void ensureBluetooth() {