Skip to content

Commit

Permalink
Merge pull request #142 from di72nn/testing
Browse files Browse the repository at this point in the history
Experimental updates
  • Loading branch information
tcitworld committed Nov 30, 2015
2 parents 6e874ac + 7af9c60 commit c28b7e4
Show file tree
Hide file tree
Showing 12 changed files with 479 additions and 379 deletions.
16 changes: 0 additions & 16 deletions app/src/main/assets/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,6 @@ body {
font-family: serif;
}

.font-size-75 {
font-size: 75%;
}

.font-size-125 {
font-size: 125%;
}

.font-size-150 {
font-size: 150%;
}

.font-size-175 {
font-size: 175%;
}

/* ==========================================================================
1 = Style Guide
========================================================================== */
Expand Down
16 changes: 0 additions & 16 deletions app/src/main/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,6 @@ body {
font-family: serif;
}

.font-size-75 {
font-size: 75%;
}

.font-size-125 {
font-size: 125%;
}

.font-size-150 {
font-size: 150%;
}

.font-size-175 {
font-size: 175%;
}

/* ==========================================================================
1 = Style Guide
========================================================================== */
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/java/fr/gaulupeau/apps/Poche/data/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,4 @@ public boolean getBoolean(String key, boolean defValue) {
return pref.getBoolean(key, defValue);
}

// well, that's embarrassingly blunt, but I'm too lazy to make it any better right now
// TODO: rewrite whole font size thing
public String getFontSizeCssClass() {
switch(getInt(FONT_SIZE, -1)) {
case 0: return "font-size-75";
case 2: return "font-size-125";
case 3: return "font-size-150";
case 4: return "font-size-175";
default: return null;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@

public class BaseActionBarActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addBackButtonToActionBar();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addBackButtonToActionBar();
}

@TargetApi(11)
protected void addBackButtonToActionBar() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
try {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
} catch (Exception e) {
//
}
}
}
@TargetApi(11)
protected void addBackButtonToActionBar() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
try {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
} catch (Exception e) {
//
}
}
}

@TargetApi(11)
protected void hideBackButtonToActionBar() {
Expand All @@ -38,11 +38,11 @@ protected void hideBackButtonToActionBar() {
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
this.finish();
return true;
}
return super.onOptionsItemSelected(item);
}
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
this.finish();
return true;
}
return super.onOptionsItemSelected(item);
}
}
Loading

0 comments on commit c28b7e4

Please sign in to comment.