altosdroid: Revert getResource().getColor to old API
[fw/altos] / altosdroid / app / src / main / java / org / altusmetrum / AltosDroid / AltosDroid.java
index 3cd369028b5adeb8331ae1b5f73174c9f7477050..404b63ace7df8582e90c2e50ecb06ff6c04d1169 100644 (file)
@@ -48,7 +48,7 @@ import android.location.LocationListener;
 import android.hardware.usb.*;
 import android.content.pm.PackageManager;
 import androidx.core.app.ActivityCompat;
-import org.altusmetrum.altoslib_13.*;
+import org.altusmetrum.altoslib_14.*;
 
 class SavedState {
        long    received_time;
@@ -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() {