Skip to content

Commit

Permalink
Fix:
Browse files Browse the repository at this point in the history
  • Loading branch information
migellal committed Mar 3, 2016
1 parent 70af30d commit a30d2bb
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ else if(requestCode == REQUEST_GALLERY && resultCode == Activity.RESULT_OK)
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void createNotifi()
@Override
public void setNaviBarColor() {
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected void onCreate(Bundle savedInstanceState) {
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public void setNaviBarColor() {
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

private String getAllContent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void onReceivedError(WebView view, int errorCode, String description, Str
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ public void onAccuracyChanged(Sensor sensor, int accuracy) {
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public void click(View view) {
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void createFile()
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public void primeNumClick(View view) {
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pl.digitalzombielab.kenistoys.activities;

import android.Manifest;
import android.annotation.TargetApi;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
Expand Down Expand Up @@ -98,6 +99,7 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in
}
}

@TargetApi(23)
private void insertPermissionsWrapper() {
List<String> permissionsNeeded = new ArrayList<>();

Expand Down Expand Up @@ -138,6 +140,7 @@ private void showMessageOKCancel(String message, DialogInterface.OnClickListener
.show();
}

@TargetApi(23)
private boolean addPermission(List<String> permissionsList, String permission) {
if (checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) {
permissionsList.add(permission);
Expand All @@ -151,7 +154,7 @@ private boolean addPermission(List<String> permissionsList, String permission) {
public void setNaviBarColor()
{
if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(getApplicationContext().getColor(R.color.colorPrimaryDark));
getWindow().setNavigationBarColor(this.getResources().getColor(R.color.colorPrimaryDark));
}

public void toysClick(int pos) {
Expand Down

0 comments on commit a30d2bb

Please sign in to comment.