removed back button
This commit is contained in:
@@ -7,3 +7,4 @@
|
|||||||
* Fixed crash if a book has no author when adding a book
|
* Fixed crash if a book has no author when adding a book
|
||||||
* Fixed crash in details view when book has no author
|
* Fixed crash in details view when book has no author
|
||||||
* Fixed crash on configuration change in details screen (caused by ActionProvider)
|
* Fixed crash on configuration change in details screen (caused by ActionProvider)
|
||||||
|
* Removed back button in details fragment
|
||||||
@@ -126,10 +126,6 @@ public class BookDetail extends Fragment implements LoaderManager.LoaderCallback
|
|||||||
String categories = data.getString(data.getColumnIndex(AlexandriaContract.CategoryEntry.CATEGORY));
|
String categories = data.getString(data.getColumnIndex(AlexandriaContract.CategoryEntry.CATEGORY));
|
||||||
((TextView) rootView.findViewById(R.id.categories)).setText(categories);
|
((TextView) rootView.findViewById(R.id.categories)).setText(categories);
|
||||||
|
|
||||||
if(rootView.findViewById(R.id.right_container)!=null){
|
|
||||||
rootView.findViewById(R.id.backButton).setVisibility(View.INVISIBLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import android.support.v7.app.ActionBar;
|
|||||||
import android.support.v7.app.ActionBarActivity;
|
import android.support.v7.app.ActionBarActivity;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import it.jaschke.alexandria.api.Callback;
|
import it.jaschke.alexandria.api.Callback;
|
||||||
@@ -160,10 +159,6 @@ public class MainActivity extends ActionBarActivity implements NavigationDrawerF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void goBack(View view){
|
|
||||||
getSupportFragmentManager().popBackStack();
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isTablet() {
|
private boolean isTablet() {
|
||||||
return (getApplicationContext().getResources().getConfiguration().screenLayout
|
return (getApplicationContext().getResources().getConfiguration().screenLayout
|
||||||
& Configuration.SCREENLAYOUT_SIZE_MASK)
|
& Configuration.SCREENLAYOUT_SIZE_MASK)
|
||||||
|
|||||||
@@ -89,20 +89,6 @@
|
|||||||
android:gravity="right|top"/>
|
android:gravity="right|top"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:contentDescription="@string/back_button"
|
|
||||||
android:id="@+id/backButton"
|
|
||||||
android:onClick="goBack"
|
|
||||||
android:src="@drawable/ic_action_undo"
|
|
||||||
style="?android:attr/buttonBarButtonStyle"
|
|
||||||
android:layout_gravity="right|top"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_alignRight="@+id/fullBookTitle"
|
|
||||||
android:layout_alignEnd="@+id/fullBookTitle"/>
|
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
Reference in New Issue
Block a user