android: Create FAB button now appears in the document browser.
Still have to implement the creations of the documents. Change-Id: Icf1864b7d748636c6a3a0dec0eeb940d1fbcd8cc
This commit is contained in:
parent
89d920d682
commit
16e45aef60
3 changed files with 9 additions and 7 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
|
||||
<application
|
||||
android:name=".LibreOfficeApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
|
|
|
@ -23,7 +23,7 @@ public class LOKitShell {
|
|||
// return metrics.density * 160;
|
||||
// }
|
||||
//
|
||||
//TODO right now this script is used only for this method that is neccessary to display the editFAB
|
||||
//TODO right now this script is used only for this method that is necessary to display the editFAB
|
||||
// Get a Handler for the main java thread
|
||||
public static Handler getMainHandler() {
|
||||
return LibreOfficeApplication.getMainHandler();
|
||||
|
|
|
@ -52,6 +52,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
|||
import com.google.android.material.navigation.NavigationView;
|
||||
|
||||
import org.libreoffice.androidapp.AboutDialogFragment;
|
||||
import org.libreoffice.androidapp.LOKitShell;
|
||||
import org.libreoffice.androidapp.LocaleHelper;
|
||||
import org.libreoffice.androidapp.R;
|
||||
import org.libreoffice.androidapp.storage.DocumentProviderFactory;
|
||||
|
@ -1212,12 +1213,12 @@ public class LibreOfficeUIActivity extends AppCompatActivity implements /*Settin
|
|||
}
|
||||
|
||||
private void setEditFABVisibility(final int visibility){
|
||||
// LOKitShell.getMainHandler().post(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// editFAB.setVisibility(visibility);
|
||||
// }
|
||||
// });
|
||||
LOKitShell.getMainHandler().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
editFAB.setVisibility(visibility);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue