move the widget RESULT_CANCELED a bit up

This commit is contained in:
tibbi 2016-01-31 17:12:55 +01:00
parent 40316dad11
commit 85b790ff49

View File

@ -25,6 +25,7 @@ public class MyWidgetConfigure extends AppCompatActivity implements SeekBar.OnSe
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setResult(RESULT_CANCELED);
setContentView(R.layout.widget_config);
ButterKnife.bind(this);
@ -39,8 +40,6 @@ public class MyWidgetConfigure extends AppCompatActivity implements SeekBar.OnSe
if (widgetId == AppWidgetManager.INVALID_APPWIDGET_ID)
finish();
setResult(RESULT_CANCELED);
}
@OnClick(R.id.config_save)