Workaround for broken recording button (see #43)
This commit is contained in:
parent
163ea4959f
commit
5c49b7002a
2 changed files with 12 additions and 4 deletions
|
@ -594,16 +594,24 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
||||||
|
|
||||||
switch (mFloatingActionButtonState) {
|
switch (mFloatingActionButtonState) {
|
||||||
case FAB_STATE_DEFAULT:
|
case FAB_STATE_DEFAULT:
|
||||||
|
mFloatingActionButtonMain.hide(); // workaround todo remove asap
|
||||||
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
|
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
|
||||||
|
mFloatingActionButtonMain.show(); // workaround todo remove asap
|
||||||
break;
|
break;
|
||||||
case FAB_STATE_RECORDING:
|
case FAB_STATE_RECORDING:
|
||||||
|
mFloatingActionButtonMain.hide(); // workaround todo remove asap
|
||||||
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_red_24dp);
|
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_red_24dp);
|
||||||
|
mFloatingActionButtonMain.show(); // workaround todo remove asap
|
||||||
break;
|
break;
|
||||||
case FAB_STATE_SAVE:
|
case FAB_STATE_SAVE:
|
||||||
|
mFloatingActionButtonMain.hide(); // workaround todo remove asap
|
||||||
mFloatingActionButtonMain.setImageResource(R.drawable.ic_save_white_24dp);
|
mFloatingActionButtonMain.setImageResource(R.drawable.ic_save_white_24dp);
|
||||||
|
mFloatingActionButtonMain.show(); // workaround todo remove asap
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
mFloatingActionButtonMain.hide(); // workaround todo remove asap
|
||||||
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
|
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
|
||||||
|
mFloatingActionButtonMain.show(); // workaround todo remove asap
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
|
classpath 'com.android.tools.build:gradle:3.3.0-alpha11'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
@ -28,9 +28,9 @@ allprojects {
|
||||||
buildToolsVersion = '28.0.2'
|
buildToolsVersion = '28.0.2'
|
||||||
|
|
||||||
constraintlayoutVersion = '1.1.3'
|
constraintlayoutVersion = '1.1.3'
|
||||||
materialVersion = "1.0.0-rc02"
|
materialVersion = "1.0.0"
|
||||||
appcompatVersion = '1.0.0-rc02'
|
appcompatVersion = '1.0.0'
|
||||||
cardviewVersion = '1.0.0-rc02'
|
cardviewVersion = '1.0.0'
|
||||||
|
|
||||||
osmdroidVersion = '6.0.2'
|
osmdroidVersion = '6.0.2'
|
||||||
gsonVersion = '2.8.5'
|
gsonVersion = '2.8.5'
|
||||||
|
|
Loading…
Reference in a new issue