diff options
author | stefan-niedermann <info@niedermann.it> | 2019-03-11 20:34:12 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-03-11 20:34:12 +0300 |
commit | caf59197c718541b3d62b3182bbef027051972b1 (patch) | |
tree | 52228aa11eadf492a3bcea7cd6604b88639bad09 /app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java | |
parent | 373211e40462e58fffc84035ef24d3171f116846 (diff) | |
parent | 785143550b3486007d46da88f9a8477aee8589a9 (diff) |
Merge remote-tracking branch 'origin/edit' into edit
# Conflicts:
# app/src/main/java/it/niedermann/nextcloud/deck/ui/card/CardDetailsFragment.java
# app/src/main/res/layout/activity_edit.xml
# app/src/main/res/layout/fragment_card_edit_tab_details.xml
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java index 6c6ccf163..c5fdae8bb 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/MainActivity.java @@ -4,18 +4,18 @@ import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Bundle; -import android.support.annotation.NonNull; -import android.support.design.widget.FloatingActionButton; -import android.support.design.widget.NavigationView; -import android.support.design.widget.Snackbar; -import android.support.design.widget.TabLayout; -import android.support.v4.graphics.drawable.DrawableCompat; -import android.support.v4.view.GravityCompat; -import android.support.v4.view.ViewPager; -import android.support.v4.widget.DrawerLayout; -import android.support.v7.app.ActionBarDrawerToggle; -import android.support.v7.app.AppCompatActivity; -import android.support.v7.widget.Toolbar; +import androidx.annotation.NonNull; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.navigation.NavigationView; +import com.google.android.material.snackbar.Snackbar; +import com.google.android.material.tabs.TabLayout; +import androidx.core.graphics.drawable.DrawableCompat; +import androidx.core.view.GravityCompat; +import androidx.viewpager.widget.ViewPager; +import androidx.drawerlayout.widget.DrawerLayout; +import androidx.appcompat.app.ActionBarDrawerToggle; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.SubMenu; @@ -150,7 +150,9 @@ public class MainActivity extends AppCompatActivity MainActivity.this.syncManager.synchronize(new IResponseCallback<Boolean>(this.account) { @Override public void onResponse(Boolean response) { - syncManager.getBoards(this.account.getId()).observe(MainActivity.this, MainActivity.this::buildSidenavMenu); + runOnUiThread(() -> { + syncManager.getBoards(this.account.getId()).observe(MainActivity.this, MainActivity.this::buildSidenavMenu); + }); } @Override |