diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-06-16 20:21:25 +0300 |
---|---|---|
committer | Daniel Bailey <daniel.bailey@grappleIT.co.uk> | 2020-07-07 22:13:41 +0300 |
commit | 3dacc1fa03f25acd514843df864186cbd8cbecd8 (patch) | |
tree | ed083e201a33418d2b9c417018d3676a2940842a /app/src/main/java/it/niedermann/nextcloud/deck/ui/widget | |
parent | 1504c754333a1126141f2056bfca85c8741ba155 (diff) |
Change title in actionbar
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/widget')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/stack/StackWidgetConfigurationActivity.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/stack/StackWidgetConfigurationActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/stack/StackWidgetConfigurationActivity.java index bbfd92177..689232748 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/stack/StackWidgetConfigurationActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/stack/StackWidgetConfigurationActivity.java @@ -4,6 +4,8 @@ import android.appwidget.AppWidgetManager; import android.content.Intent; import android.os.Bundle; +import androidx.appcompat.app.ActionBar; + import it.niedermann.nextcloud.deck.DeckLog; import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.ui.PickStackActivity; @@ -14,6 +16,11 @@ public class StackWidgetConfigurationActivity extends PickStackActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + final ActionBar actionBar = getSupportActionBar(); + if (actionBar != null) { + actionBar.setTitle("Add stack widget"); + } + setResult(RESULT_CANCELED); final Bundle extras = getIntent().getExtras(); @@ -30,8 +37,7 @@ public class StackWidgetConfigurationActivity extends PickStackActivity { @Override protected void onSubmit(Account account, long boardId, long stackId) { - - syncManager.addStackWidget(appWidgetId, account.getId(), stackId,false); + syncManager.addStackWidget(appWidgetId, account.getId(), stackId, false); Intent updateIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE, null, getApplicationContext(), StackWidget.class); updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); |