зеркало из https://github.com/nextcloud/android.git
removing android4 calls to actionbar and fragments manager
This commit is contained in:
Родитель
007edfe102
Коммит
9b5c3965b5
|
@ -22,13 +22,14 @@ import android.accounts.Account;
|
|||
import android.accounts.AccountManager;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.ActionBar.OnNavigationListener;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.DialogInterface.OnCancelListener;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.ActionBar;
|
||||
import android.support.v4.app.FragmentTransaction;
|
||||
import android.support.v4.app.ActionBar.OnNavigationListener;
|
||||
import android.support.v4.view.Menu;
|
||||
import android.support.v4.view.MenuItem;
|
||||
import android.view.MenuInflater;
|
||||
|
@ -65,9 +66,10 @@ public class FileDisplayActivity extends android.support.v4.app.FragmentActivity
|
|||
mDirectories = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item);
|
||||
mDirectories.add("/");
|
||||
setContentView(R.layout.files);
|
||||
getActionBar().setNavigationMode(android.support.v4.app.ActionBar.NAVIGATION_MODE_LIST);
|
||||
getActionBar().setDisplayShowTitleEnabled(false);
|
||||
getActionBar().setListNavigationCallbacks(mDirectories, this);
|
||||
ActionBar action_bar = getSupportActionBar();
|
||||
action_bar.setNavigationMode(android.support.v4.app.ActionBar.NAVIGATION_MODE_LIST);
|
||||
action_bar.setDisplayShowTitleEnabled(false);
|
||||
action_bar.setListNavigationCallbacks(mDirectories, this);
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.add(R.id.file_list_container, new FileList());
|
||||
|
|
Загрузка…
Ссылка в новой задаче