55import android .graphics .BitmapFactory ;
66import android .net .Uri ;
77import android .os .Bundle ;
8- import android . support . v7 . app . AppCompatActivity ;
9- import android . support . v7 . widget . AppCompatButton ;
8+
9+
1010import android .util .Log ;
1111import android .view .View ;
1212import android .widget .LinearLayout ;
1313import android .widget .SeekBar ;
1414
15+ import androidx .appcompat .app .AppCompatActivity ;
16+ import androidx .appcompat .widget .AppCompatButton ;
17+
1518import org .wysaid .common .Common ;
1619import org .wysaid .myUtils .ImageUtil ;
1720import org .wysaid .myUtils .MsgUtil ;
@@ -137,8 +140,8 @@ public void surfaceCreated() {
137140 mSeekBar .setOnSeekBarChangeListener (new SeekBar .OnSeekBarChangeListener () {
138141 @ Override
139142 public void onProgressChanged (SeekBar seekBar , int progress , boolean fromUser ) {
140- if (mActiveConfig != null ) {
141- float intensity = progress / (float )seekBar .getMax ();
143+ if (mActiveConfig != null ) {
144+ float intensity = progress / (float ) seekBar .getMax ();
142145 mActiveConfig .setIntensity (intensity , true );
143146 }
144147 }
@@ -156,7 +159,7 @@ public void onStopTrackingTouch(SeekBar seekBar) {
156159
157160 LinearLayout menuLayout = (LinearLayout ) findViewById (R .id .menuLayout );
158161
159- if (BASIC_FILTER_NAMES .length == mAdjustConfigs .length ) {
162+ if (BASIC_FILTER_NAMES .length == mAdjustConfigs .length ) {
160163
161164 for (int i = 0 ; i != BASIC_FILTER_NAMES .length ; ++i ) {
162165 MyButton btn = new MyButton (this , mAdjustConfigs [i ]);
@@ -244,7 +247,7 @@ public void resetBtnClicked(View view) {
244247 public void run () {
245248
246249 CGEImageHandler handler = mImageView .getImageHandler ();
247- for (AdjustConfig config : mAdjustConfigs ) {
250+ for (AdjustConfig config : mAdjustConfigs ) {
248251
249252 handler .setFilterIntensityAtIndex (config .originValue , config .index , false );
250253 }
0 commit comments